class MyTemplatePugFileHandler
super Handler
# Use template from external file
var pug_file = "example_template.pug"
redef fun get(req, res) do
# Values to add in the template
var json = new JsonObject
json["user"] = "Morriar"
json["mysite"] = "My super website"
# Render it from an external file
res.pug_file(pug_file, json)
end
end
lib/popcorn/examples/templates/example_templates.nit:92,1--107,3