preparations for styling: refactor template rendering
Using this construction each template is parsed again and again, while it would be sufficient to parse them all on startup and later just execute them.
preparations for styling: refactor template rendering
Here we should consider checking whether the name is restricted to something like [a-zA-Z0-9]
to prevent directory traversal. Possibly it is sufficient to forbid /
and/or .