Blip is a templating language for Go. It works by transpiling templates into pure Go and including them at compile time. These templates are light wrappers around the Go language itself.
Benefits:
- Very Fast rendering
- Compile time type checking, Type safe!
- Template Extending / Including
- Simple syntax
- Auto-Escaping
- Support passing variables directly and via context
- Extendable escaping / monitoring
Cons:
- Not a dynamic template, will require transpiling and recompiling.
- blip can watch the project and transpile automatically.
- air can be used to auto restart applications
- See the documentation: Documentation
- See the example blipWebServer: BlipWebServerExample
Development version
go get -u github.com/samlotti/blip
Install the blip command line tool
go install github.com/samlotti/blip@latest
All contributions are welcome – if you find a bug please report it.
The @= command will escape based on the mode (filename) of the template.
- html - uses html.EscapeString().
- text - no escaping.
- other - can plug in and IBlipEscaper implementation.
If any security issues are found with rendering please report it.
- Sam Lotti (support@hapticappsllc.com)