Skip to content

CloudyKit/jet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 24, 2025
187ff51 · Feb 24, 2025
Mar 3, 2024
Feb 20, 2024
Nov 5, 2020
Mar 7, 2024
Feb 19, 2024
Nov 5, 2020
Apr 18, 2016
Nov 5, 2020
Jun 8, 2017
Nov 5, 2020
Nov 5, 2020
Nov 5, 2020
Feb 20, 2024
Dec 16, 2022
Mar 5, 2021
Mar 5, 2021
Dec 16, 2024
Feb 24, 2025
Mar 5, 2021
Nov 5, 2020
Feb 24, 2025
Mar 7, 2024
Mar 5, 2021
Feb 19, 2024
Sep 3, 2020
Nov 6, 2020
Oct 28, 2020
Feb 20, 2024
Feb 19, 2024
Apr 15, 2016
Dec 16, 2022
Dec 16, 2024
Feb 20, 2024
Nov 5, 2020
Apr 18, 2016

Repository files navigation

Jet Template Engine for Go

Build Status Build status Join the chat at https://gitter.im/CloudyKit/jet

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

v6

Version 6 brings major improvements to the Go API. Make sure to read through the breaking changes before making the jump.

Docs

Example application

An example to-do application is available in examples/todos. Clone the repository, then (in the repository root) 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

  • José Santos (@jhsx)
  • Daniel Lohse (@annismckenzie)
  • Alexander Willing (@sauerbraten)