Go Template Engines

Open-source Go projects categorized as Template Engines

Top 23 Go Template Engine Projects

  • templ

    A language for writing HTML user interfaces in Go.

    Project mention: Go Beyond the Basics: Mastering Toast Notifications with Go and HTMX | dev.to | 2024-02-21

    html/template - we will be using the standard HTML templating library built into Go. It is a great library and perfect for simple things like this, though if you have a more complicated project (I assume you do), I would look into using something like templ.

  • sprig

    Useful template functions for Go templates.

    Project mention: Templ: A language for writing HTML user interfaces in Go | news.ycombinator.com | 2023-12-10

    Standard Go templating seems really lacking if you come from something like Jinja. Even with libraries like https://masterminds.github.io/sprig/ (used e.g. for Helm templating) it feels hard to use.

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • quicktemplate

    Fast, powerful, yet easy to use template engine for Go. Optimized for speed, zero memory allocations in hot paths. Up to 20x faster than html/template

    Project mention: Templ: A language for writing HTML user interfaces in Go | news.ycombinator.com | 2023-12-10

    Here are a couple:

    https://github.com/julvo/htmlgo

    https://github.com/rohanthewiz/element

    I'm sure there are many more.

    The thing about these is that performance is often not as good as when using templates, especially when the templates are compiled to native code. Quicktemplate [1] is still the leader here IMO, and I don't think the OP project brings much that couldn't be done pretty easily with QT.

    [1] https://github.com/valyala/quicktemplate

  • pongo2

    Django-syntax like template-engine for Go

    Project mention: 6 🔥 Awesome Golang packages (web devs) | dev.to | 2023-12-04
  • hero

    A handy, fast and powerful go template engine. (by shiyanhui)

  • maroto

    A maroto way to create PDFs. Maroto is inspired in Bootstrap and uses gofpdf. Fast and simple.

    Project mention: How to create a PDF? | /r/golang | 2023-04-11
  • Jet Template Engine for GO

    Jet template engine (by CloudyKit)

  • LearnThisRepo.com

    Learn 300+ open source libraries for free using AI. LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI!

  • mustache

    The mustache template language in Go (by hoisie)

    Project mention: What is the current ideal choice for server-side rendered web frameworks? | /r/golang | 2023-06-08

    If the question is about templating libraries, then I've seen people use other libraries than the html/template, like https://github.com/hoisie/mustache or https://github.com/valyala/quicktemplate

  • amber

    Amber is an elegant templating engine for Go Programming Language, inspired from HAML and Jade (by eknkc)

  • Plush

    The powerful template system that Go needs

    Project mention: Plush VS Salix - a user suggested alternative | libhunt.com/r/plush | 2023-10-31
  • Razor

    Razor view engine for go

  • ace

    HTML template engine for Go (by yosssi)

  • fasttemplate

    Simple and fast template engine for Go

    Project mention: fasttemplate VS Salix - a user suggested alternative | libhunt.com/r/fasttemplate | 2023-10-31
  • ego

    An ERB-style templating language for Go.

  • raymond

    Handlebars for golang

    Project mention: Who is using Go to build web sites and applications? | /r/golang | 2023-04-04
  • goview

    Goview is a lightweight, minimalist and idiomatic template library based on golang html/template for building Go web application.

    Project mention: goview VS Salix - a user suggested alternative | libhunt.com/r/goview | 2023-10-31
  • Jade

    Jade.go - pug template engine for Go (golang)

  • liquid

    A Liquid template engine in Go (by osteele)

    Project mention: Gojekyll – 20x faster Go port of jekyll | news.ycombinator.com | 2023-08-26

    This project uses another templating language, apparently based on Shopify.

    (1) https://github.com/osteele/liquid

  • Soy

    Go implementation for Soy templates (Google Closure templates)

  • kasia.go

    Templating system for HTML and other text documents - go implementation

  • velvet

    A sweet velvety templating package

  • gospin

    Article spinning and spintax/spinning syntax engine written in Go, useful for A/B, testing pieces of text/articles and creating more natural conversations

  • got

    GoT is a template engine that turns templates into Go code to compile into your app. (by goradd)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-02-21.

Go Template Engines related posts

Index

What are some of the best open-source Template Engine projects in Go? This list will help you:

Project Stars
1 templ 5,657
2 sprig 3,897
3 quicktemplate 2,976
4 pongo2 2,746
5 hero 1,554
6 maroto 1,380
7 Jet Template Engine for GO 1,101
8 mustache 1,095
9 amber 913
10 Plush 843
11 Razor 838
12 ace 829
13 fasttemplate 793
14 ego 576
15 raymond 574
16 goview 396
17 Jade 342
18 liquid 255
19 Soy 172
20 kasia.go 74
21 velvet 73
22 gospin 53
23 got 26
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com