lijian 48c2e0e9f9 依赖更新为 go mod hai 1 ano
..
.gitignore 48c2e0e9f9 依赖更新为 go mod hai 1 ano
.travis.yml 48c2e0e9f9 依赖更新为 go mod hai 1 ano
LICENSE 48c2e0e9f9 依赖更新为 go mod hai 1 ano
README.md 48c2e0e9f9 依赖更新为 go mod hai 1 ano
appveyor.yml 48c2e0e9f9 依赖更新为 go mod hai 1 ano
constructors.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano
default.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano
eval.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano
func.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano
lex.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano
loader.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano
node.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano
parse.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano
profile.sh 48c2e0e9f9 依赖更新为 go mod hai 1 ano
ranger.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano
stress.bash 48c2e0e9f9 依赖更新为 go mod hai 1 ano
template.go 48c2e0e9f9 依赖更新为 go mod hai 1 ano

README.md

Jet Template Engine for Go

Build Status Build status

Jet is a template engine developed to be easy to use, powerful, dynamic, yet secure and very fast.

  • simple and familiar syntax
  • supports template inheritance (extends) and composition (block/yield, import, include)
  • descriptive error messages with filename and line number
  • auto-escaping
  • simple C-like expressions
  • very fast execution – Jet can execute templates faster than some pre-compiled template engines
  • very light in terms of allocations and memory footprint

v4

Version 4 brings a lot of bug fixes and improvements as well as updated documentation, but make sure to read through the breaking changes before making the jump.

Docs

Example application

An example application is available in the repository. Use go get -u github.com/CloudyKit/jet or clone the repository into $GOPATH/github.com/CloudyKit/jet, then do:

  $ cd examples/todos; go run main.go

IntelliJ Plugin

If you use IntelliJ there is a plugin available at https://github.com/jhsx/GoJetPlugin. There is also a very good Go plugin for IntelliJ – see https://github.com/go-lang-plugin-org/go-lang-idea-plugin. GoJetPlugin + Go-lang-idea-plugin = happiness!

Contributing

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

Contributors