--- a/handlers/render.lua Wed Dec 15 10:37:47 2021 +0200 +++ b/handlers/render.lua Sun Aug 06 14:32:25 2023 +0300 @@ -85,6 +85,7 @@ function handlers_render.env_for(file, env, path_prefix) local newenv=table.copy(env) + newenv.source_file=file newenv.base_url=path.to_root(file) newenv.path_prefix=(path_prefix or "") newenv.page=env.pages[file]