class MyTemplatePugHandler
super Handler
redef fun get(req, res) do
# Values to add in the template
var json = new JsonObject
json["user"] = "Morriar"
json["mysite"] = "My super website"
res.pug("""
h1 Hello #{user}
p Welcome to #{mysite}
""", json)
end
end
lib/popcorn/examples/templates/example_templates.nit:76,1--90,3