nitcorn :: HttpResponse :: pug_file
file
with the command cli pug
and use data from json
See https://pugjs.org/api/getting-started.html for more details on pug.
# Render `file` with the command cli `pug` and use data from `json`
#
# See https://pugjs.org/api/getting-started.html for more details on pug.
fun pug_file(file: String, json: nullable Serializable, status: nullable Int) do
pug(file.to_path.read_all, json, status)
end
lib/popcorn/pop_templates.nit:129,2--134,4