Commit Graph

3 Commits (eb1880d348be64b1eef22a72ffed62cc916b1119)

Author SHA1 Message Date
Noah 6d3de7da69 Let me use interface{} for template vars
Since most of the `render.Vars{}` fields were hardcoded/not really
editable for the templates, apart from .Data, this struct is now locked
away in the render subpackage.

End http.HandlerFunc's can then make any arbitrary template data
structure they want to, available inside the templates as `.Data`.
2018-02-10 14:05:41 -08:00
Noah eab7dae75b Further simplify template rendering 2018-02-10 13:16:20 -08:00
Noah e393b1880f Move template rendering into sub-package 2018-02-10 10:08:45 -08:00