JSON configuration
Fri, 18 Sep 2009
, modified Fri, 13 Nov 2009
Thanks to the embedded Mojo::JSON parser bootylicious configs are now much easier to read and maintain:
{
"base" : "/",
"title" : "bootylicious",
"descr" : "One-file blog engine software on Mojo steroids!",
"author" : "vti",
"publicdir" : "../../htdocs",
"menu" : [
"index", "/index.html",
"tags", "/tags.html",
"search", "/search.html",
"archive", "archive.html",
"documentation", "/articles/2009/08/documentation.html",
"source code", "http://github.com/vti/bootylicious",
"<b>download<em>!</em></b>", "/bootylicious.pl"
],
"plugins" : [
"gallery",
"search"
],
"footer" : "Bootylicious is powered by Mojolicious::Lite and Pod::Simple::HTML"
}
Even though JSON RFC says nothing about comments, it is possible to use them in bootylicious configuration:
{
"base" : "/",
# "title" : "bootylicious",
"title" : "Bootylicious"
}
