Well, aren't we trying to overkill things there? Dancer is a web application framework, it may have downsides, but clearly, if there is something to say about it, it's that it's dead-simple to use. If you feed it with an invalid YAML file, well, the parsing will fail, and the error message will come directly from the parser, not from Dancer itself. Many options already exist to avoid this: - you can set your settings in a perl script included in your app (using 'set'). - you can bootstrap an application with "dancer -a" and you'll get a working config.yml file - if you build a config.yml file by hand, you're supposed to know at least how to do it, so maybe experimenting with YAML first could be a good idea I don't think Dancer should do more than that regarding YAML files... 2011/11/10 Stefan Hornburg (Racke) <racke@linuxia.de>:
On 11/10/2011 07:04 PM, Assaf Gordon wrote:
Alex Mestiashvili wrote, On 11/10/11 11:47:
On 11/10/2011 04:53 PM, Philippe Bruhat (BooK) wrote:
On Thu, Nov 10, 2011 at 02:39:14PM +0100, Alex Mestiashvili wrote:
using spaces solved the problem . So I think that it will be not bad to mention somewhere in the documentation that tabs shouldn't be used in config.yml .
I agree and after all I learned something new, but Dancer positions itself like "Dead Simple" and imho it won't hurt to have a line stating that config.yml should use YAML syntax . Such obvious fact that .yml means man YAML wasn't clear for me .
I couldn't agree more.
The YAML-related Dancer error message is anything but "dead simple" (it is very perlish-wise informative, though). It took me a long time to understand what's wrong, way too much time compare to the minor offense of a single tab.
Same goes for missing final newline.
Regards Racke
-- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users