| LAZYGAL.CONF(5) | LAZYGAL.CONF(5) |
lazygal.conf - Configuration file for lazygal, a static web gallery generator.
lazygal is configured using JSON files. The format looks like this:
{
"sectionname": {
"variable" : "string value ",
"boolean" : false,
"list" : ["foo", "bar"],
"dictionary" : {
"key1": "value1",
"key2": "value2"
}
},
"othersection": {
"foo" : "bar"
}
}
This format is the preferred way to configure LAZYGAL.
The configuration file can also be an INI like file. The format looks like this:
[sectionname]
variable = string value
boolean = Yes
list = foo, bar
dictionary = key1=value1, key2=value2
[othersection]
foo = bar
In this INI format, boolean values can be conveniently set in the following ways:
Please refer to the python ConfigParser documentation (http://docs.python.org/library/configparser.html) for more information on the file format.
The runtime defines the runtime parameters.
The global defines the global parameters. Those parameters apply to all the sub-galleries.
The webgal defines the parameters for a web-gallery.
"image-size": [
{"name": "small", "defs": "800x600", "default": true},
{"name": "medium", "defs": "1024x768"} ]
or with implicit default as first entry:
"image-size": {
"small" : "800x600",
"medium": "1024x768"
}
In addition, size can be the name of a previously declared image-size.
The template-vars defines the custom template variables. The variables and their value are listed in this section.
For instance, $footer is a template variable in the default template. Its value can be defined with this configuration file:
{
"template-vars": {
"footer": "<p>All pics are copyright 2011 me</p>"
}
}
This manual page was written for the DEBIAN system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
Alexandre Rossi.