Render the TemplateString tpl with values and write it as html.

Property definitions

popcorn :: pop_templates $ HttpResponse :: template
	# Render the TemplateString `tpl` with `values` and write it as html.
	fun template(tpl: nullable TemplateString, values: nullable Map[String, nullable Writable], status: nullable Int) do
		if tpl != null and values != null then
			for k, v in values do
				if not tpl.has_macro(k) or v == null then continue
				tpl.replace(k, v)
			end
		end
		html(tpl, status)
	end
lib/popcorn/pop_templates.nit:91,2--100,4