blip

command module
v0.8.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 3 Imported by: 0

README

Blip Template Engine for Go

Blip

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

Docs

Examples

Installing

Development version

go get -u github.com/samlotti/blip

Install the blip command line tool

go install github.com/samlotti/blip@latest

Contributing

All contributions are welcome – if you find a bug please report it.

Security

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.

Conbributors

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL