This will require rewriting the templates to be consistent on use of ‘dot’ notation and dictionaries. For example the following are equivalent
$getVar('Extras.pages.' + $page + '.' + $section + '.filename', None)
$Extras['pages'][$page][$section].get('filename', None)
Being consistent will be a good thing.
I am leaning toward the 2nd (dictionary) version. I think it is a bit more readable.
This will require rewriting the templates to be consistent on use of ‘dot’ notation and dictionaries. For example the following are equivalent
$getVar('Extras.pages.' + $page + '.' + $section + '.filename', None)
$Extras['pages'][$page][$section].get('filename', None)
Being consistent will be a good thing.
I am leaning toward the 2nd (dictionary) version. I think it is a bit more readable.
data/index.js.tmpl
data/internationalization.js.tmpl
generators/body.inc
generators/data.gen
generators/pages.gen
javascript/index.js.tmpl
sections/alert_modal.inc
sections/basic_about.inc
sections/chart.inc
sections/current.inc
sections/current_modal.inc
sections/debug.inc
sections/forecast.inc
sections/minmax.inc
sections/radar.inc
sections/thisdate.inc
sections/zoomControl.inc
index.html.tmpl
jas.css.tmpl
manifest.json.tmpl
user.css.tmpl