3 grender - HTML templates that can extend other templates

github.com godoc.org goreportcard.com posted by dvk 150 days ago  

Grender is a package that provides functionality for easily rendering HTML templates and JSON or XML data to a HTTP response. It is based on github.com/unrolled/render with some subtle modifications when it comes to rendering HTML templates.

- Templates can extend other templates using a template comment: {{/* extends "master.tmpl" */}}

- Configure template files using a glob string: templates/*.tmpl

- Support for partials as normal templates: {{ template "footer" .}}

Register to comment or vote on this story