Vascula v1.1.0 GitHub

Reference

Versions and stability

#Versions

Vascula uses semantic versioning. Within version 1, a template that compiles and renders keeps doing so with the same output, and the Go API stays compatible. The one exception is a security fix: a release may refuse a template, or change what it prints, where the old behavior was unsafe. Every change is in the changelog, with what to check when you upgrade.

#What does not change

These will not change:

  • Output is always escaped, and templates cannot switch escaping off.
  • A template reads only what the application gives it; unknown names are errors.
  • Templates are bounded: compilation and rendering have limits.
  • Template output is never evaluated as a template.
  • Mistakes are errors with positions, not silently empty output.

#Upgrading

  1. Pin an exact version and read the changelog entries between your version and the new one.
  2. Compile every stored template with the new version. Compilation is strict, so syntax changes show up here.
  3. If you can, render your templates with representative data on both versions and compare the output.
  4. Recompile cached templates: a compiled template belongs to the version that compiled it.