Syntax

Learn about the syntax of GoHT templates.

GoHT templates are based on Haml a popular templating library for Ruby applications.

Pre v1.0.0

The syntax for GoHT templates while fairly stable is still being developed. There may be breaking changes on the road to v1.0.0.

The areas that are currently being worked on are:

  • Indentation rules for GoHT templates (Should an initial indent be required or not?)
  • Directive design (@goht, @attributes, @render, @children, etc.)
  • Idiomatic Go (Bringing Go idioms to Haml templates)

There are still some undiscovered corner cases that need addressing. These may lead to breaking changes in the way templates are written and parsed.