Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CloudyKit/jet
Jet template engine
https://github.com/CloudyKit/jet
golang jet jet-template-engine template-engine
Last synced: about 2 months ago
JSON representation
Jet template engine
- Host: GitHub
- URL: https://github.com/CloudyKit/jet
- Owner: CloudyKit
- License: apache-2.0
- Created: 2016-03-31T16:53:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T12:54:32.000Z (9 months ago)
- Last Synced: 2024-09-30T22:12:45.675Z (2 months ago)
- Topics: golang, jet, jet-template-engine, template-engine
- Language: Go
- Size: 489 KB
- Stars: 1,249
- Watchers: 22
- Forks: 104
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - jet - Jet template engine. (Template Engines / HTTP Clients)
- zero-alloc-awesome-go - jet - Jet template engine. (Template Engines / HTTP Clients)
- go-awesome - Jet - very fast (Open source library / Template Engine)
- awesome-go - jet - Jet template engine. Stars:`1.3K`. (Template Engines / HTTP Clients)
- awesome-go - jet - Jet template engine - ★ 515 (Template Engines)
- awesome-hacking-lists - CloudyKit/jet - Jet template engine (Go)
- awesome-go-extra - jet - 03-31T16:53:36Z|2021-10-27T04:41:38Z| (Template Engines / HTTP Clients)
- awesome-go - jet - 强大的模板引擎,提供良好的性能和模板继承支持。 (模板引擎 / 交互工具)
- awesome-go - jet - 强大的模板引擎,提供良好的性能和模板继承支持。 (模板引擎 / 交互工具)
README
# Jet Template Engine for Go
[![Build Status](https://travis-ci.org/CloudyKit/jet.svg?branch=master)](https://travis-ci.org/CloudyKit/jet) [![Build status](https://ci.appveyor.com/api/projects/status/5g4whw3c6518vvku?svg=true)](https://ci.appveyor.com/project/CloudyKit/jet) [![Join the chat at https://gitter.im/CloudyKit/jet](https://badges.gitter.im/CloudyKit/jet.svg)](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](./docs/changes.md) before making the jump.
## Docs
- [Go API](https://beta.pkg.go.dev/github.com/CloudyKit/jet/v6#section-documentation)
- [Syntax Reference](./docs/syntax.md)
- [Built-ins](./docs/builtins.md)
- [Wiki](https://github.com/CloudyKit/jet/wiki) (some things are out of date)## Example application
An example to-do application is available in [examples/todos](./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)