A fast, secure, and dynamic template engine for Go with a simple syntax and template inheritance.
Jet is a template engine for the Go programming language that enables developers to generate dynamic HTML and other text-based outputs. It solves the need for a fast, secure, and feature-rich templating solution with support for inheritance, composition, and auto-escaping to build maintainable web applications.
Go developers building web applications or any project requiring dynamic text generation, especially those who value performance, security, and a clean template syntax.
Developers choose Jet for its combination of speed—often outperforming pre-compiled engines—and a rich feature set including template inheritance, all while ensuring security through auto-escaping and providing clear error messages.
Jet template engine
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The README benchmarks Jet as executing templates faster than some pre-compiled engines, with low memory footprint and allocations, making it ideal for performance-critical applications.
Supports template inheritance with extends, blocks, and includes, allowing for modular and reusable template structures as described in the syntax reference.
Provides descriptive error messages with filename and line number, simplifying debugging by pinpointing issues directly in templates.
Auto-escaping is enabled by default to prevent XSS attacks, ensuring secure output without extra configuration.
Version 6 introduces major improvements with breaking changes to the Go API, requiring migration effort and careful review of documentation, as noted in the changes.md file.
The wiki is acknowledged as partially out of date, which can lead to confusion and reliance on scattered resources for up-to-date information.
Compared to Go's standard template library, Jet has fewer third-party integrations, plugins, and community contributions, limiting ready-made solutions.