Changeset [54ac24db692f2313ee1c18d0cc953535dccc3a57] by Ville Koivula
Revision 54ac24db692f2313ee1c18d0cc953535dccc3a57,
committed by Ville Koivula
· March 3rd, 2009 @ 10:09 AM
Added nitrogen:get_templateroot/0. You can now have for example {templateroot, ./priv/templates} in your .app -file. This separates templates from files that are served as is as I don't think anyone needs to see what templates have eaten. You specify template with #template { file=template.html} and it's read from the directory you set with environment variable. If not set it defaults to ./wwwroot http://github.com/rklophaus/nitr...
2 changed files
-
M
src/elements/layout/element_template.erl -
M
src/nitrogen.erl