This commit is contained in:
Valentin Gagarin 2024-11-13 15:24:41 +01:00 committed by Valentin Gagarin
parent ad8b758cee
commit 822ff6c1b4

View file

@ -31,6 +31,7 @@ in
# TODO: reconsider using `page.outPath` and what to put into `locations`. # TODO: reconsider using `page.outPath` and what to put into `locations`.
# maybe we can avoid having ".html" suffixes there. # maybe we can avoid having ".html" suffixes there.
# since templates can output multiple files, `html` is merely one of many things we *could* produce. # since templates can output multiple files, `html` is merely one of many things we *could* produce.
# TODO: maybe it would even make sense to split routing and rendering altogether
${page.outPath} = builtins.toFile "${page.name}.html" (templates.html { ${page.outPath} = builtins.toFile "${page.name}.html" (templates.html {
head = '' head = ''
<title>${page.title}</title> <title>${page.title}</title>