Template engine

Top 23 Template engine Open-Source Projects

  • Liquid

    Liquid markup language. Safe, customer facing template language for flexible web apps.

    Project mention: Count tickets opened per organization based on a custom field (ticket type/category) | /r/Zendesk | 2023-05-23

    Assuming I understand the ask, I think my approach would be to have a trigger fire when a ticket's custom field is set to "add user to the application." That trigger would notify a webhook. That webhook would be set to the Organization API endpoint with a payload that uses liquid markup to add 1 to the existing Organization's value.

  • Jinja2

    A very fast and expressive template engine.

    Project mention: Jinja and Django Jinja | /r/Python | 2023-03-03

    But, on the other hand, I can read in the jinja repository that there is not the same Switching From Other Template Engines and also exists documentation about Support for templates engines

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • Twig

    Twig, the flexible, fast, and secure template language for PHP

    Project mention: XSS Attack - Why strip_tags is not enough | dev.to | 2023-09-13

    In the phase of outputting data, you can use template engines like Twig or Blade or htmlspecialchars function.

  • Blade

    :rocket: Lightning fast and elegant mvc framework for Java8

  • Slim

    Slim is a template language whose goal is to reduce the syntax to the essential parts without becoming cryptic. (by slim-template)

    Project mention: How to build a website without frameworks and tons of libraries | news.ycombinator.com | 2023-07-04

    I use something very similar on https://lunar.fyi and https://lowtechguys.com but I wouldn’t call this “simple” anymore.

    They use Jinja templating, I prefer Slim (https://github.com/slim-template/slim#syntax-example) which has a more Pythonic syntax (there is plim [0] in Python for that)

    I use Tailwind as well for terse styling and fast experimentation (allows me to write a darkMode-aware and responsive 100 line CSS in a single line with about 10 classes)

    For interaction I can write CoffeeScript directly in the page [1] and have it compiled by plim.

    I run a Caddy static server [2] and use Syncthing [3] to have every file save deployed instantly to my Hetzner server.

    I use entr [4] and livereloadx [5] to rebuild the pages and do hot reload on file save. All the commands are managed in a simple Makefile [6]


    You can already see how the footnotes take up a large chunk of this comment, this is not my idea of simple. Sure, the end result is readable static HTML and I never have to fight obscure React errors, but it’s a high effort setup for starters.

    Simple for me would be: write markdown files for pages, a simple CSS for general styling (should be optional), click to deploy on my domain. Images should automatically be resized to multiple sizes and optimized, videos re-encoded for smaller filesize etc.

    I have mostly implemented that for myself (https://notes.alinpanaitiu.com/How%20I%20write%20this%20blog...) but it feels fragile. I’d rather pay for a professional solution.

    [0] https://plim.readthedocs.io/en/latest/

    [1] https://github.com/FuzzyIdeas/lowtechguys/blob/main/src/rcmd...

    [2] https://caddyserver.com/docs/command-line#caddy-file-server

    [3] https://syncthing.net

    [4] https://github.com/eradman/entr

    [5] https://nitoyon.github.io/livereloadx/

    [6] https://github.com/FuzzyIdeas/lowtechguys/blob/main/Makefile

  • Haml

    HTML Abstraction Markup Language - A Markup Haiku

    Project mention: Any web frameworks that could compare to Symfony? | /r/rust | 2023-03-09

    Personally, I'd recommend Maud if you don't need something with runtime reloading. Not only is it much faster, it implements a template language that is effectively the Rust-syntax equivalent to Slim or Haml using a procedural macro, so you get compile-time verification that your HTML output is well-formed.

  • email-templates

    Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • rivets

    Lightweight and powerful data binding.

  • DocPad

    Empower your website frontends with layouts, meta-data, pre-processors (markdown, jade, coffeescript, etc.), partials, skeletons, file watching, querying, and an amazing plugin system. DocPad will streamline your web development process allowing you to craft powerful static sites quicker than ever before.

  • Mustache

    Logic-less Ruby templates.

  • tera

    A template engine for Rust based on Jinja2/Django

    Project mention: What is the current ideal choice for server-side rendered web frameworks? | /r/rust | 2023-06-08
  • 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: Full stack web dev with Go. | /r/golang | 2023-08-01

    From my experience you don't really need a distinct frontend framework for web development in Go. I've been able to use quicktemplate for some of my projects for rendering HTML pretty effectively. I've written about using it here.

  • fatfree

    A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!

    Project mention: I'm looking for a php framework | /r/PHPhelp | 2023-04-25

    https://github.com/bcosca/fatfree ?

  • Thymeleaf

    Thymeleaf is a modern server-side Java template engine for both web and standalone environments.

    Project mention: Spring Boot Thymeleaf File Upload example | dev.to | 2023-08-30
  • scriban

    A fast, powerful, safe and lightweight scripting language and engine for .NET

    Project mention: Scriban lightweight scripting language for .NET | news.ycombinator.com | 2023-09-21
  • TemplateStudio

    Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.

  • askama

    Type-safe, compiled Jinja-like templates for Rust

    Project mention: Announcing Stilts v0.1 A new template engine like Askama | /r/rust | 2023-07-04

    This templating languge / engine is heavily inspired by Askama, but brings more rust into your template code. The project is still in early stages and is likely filled with bugs but I wanted to get something out there to get some feedback on.

  • RazorEngine

    Open source templating engine based on Microsoft's Razor parsing engine

    Project mention: C# Library for Go template | /r/csharp | 2023-05-24

    There's a load of packages to do it for example https://github.com/Antaris/RazorEngine

  • Sanitize

    Ruby HTML and CSS sanitizer.

  • manifold

    Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.

    Project mention: Java 21: The Nice, the Meh, and the Momentous | news.ycombinator.com | 2023-09-22

    Patterns are somewhat nice to have, but for me they’re difficult to read, and not because my brain isn’t used to them. The simple identifier instanceof is about all I’ll use _most_ of the time. Otherwise, yes they are more concise, but lose too much information in the process.

    I’d rather see a boatload load of other features before patterns. I’ve been experimenting with project manifold[1]. _That_ is the path Java sb on. Just my take.

    1. https://github.com/manifold-systems/manifold

  • Giraffe

    A native functional ASP.NET Core web framework for F# developers.

    Project mention: The combined power of F# and C# | news.ycombinator.com | 2023-08-07

    Giraffe is another interesting one to explore: https://giraffe.wiki/

    Giraffe is nice because it is itself built "just" as ASP.NET Core Middleware so it plays a bit more nicely than Suave with a mixed stack of C#-defined Middleware.

    It's more likely you accidentally fall back into just translating C# patterns to non-idiomatic F# with Giraffe, but it's also nicer when in that case of needing to live in both worlds and use a mixture of libraries built for C# ASP.NET projects.

  • Tilt

    Generic interface to multiple Ruby template engines (by rtomayko)

    Project mention: What It Took to Build a Rails Integration for Rodauth | dev.to | 2022-10-12

    The built-in view templates use Tilt's interpolated string engine, which avoids ERB dependency, but requires work to adapt for Rails. So, rodauth-rails' views generator imports already converted ERB view templates that use familiar Rails' form helpers.

  • Mustache.java

    Implementation of mustache.js for Java

    Project mention: Quick preview of jstachio a type safe java mustache templating engine | /r/java | 2022-10-21

    It now passes the Mustache spec. Arguably better than mustache.java as it adheres to whitespace rules. (BTW I used mustache templating to generate the spec test classes and preferred JMustache over mustache.java exactly because JMustache follows the whitespace rules.)

  • Revelo Payroll

    Free Global Payroll designed for tech teams. Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.

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 2023-09-22.

Template engine related posts


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

Project Stars
1 Liquid 10,446
2 Jinja2 9,497
3 Twig 7,897
4 Blade 5,804
5 Slim 5,230
6 Haml 3,726
7 email-templates 3,576
8 rivets 3,227
9 DocPad 3,046
10 Mustache 2,964
11 tera 2,871
12 quicktemplate 2,866
13 fatfree 2,623
14 Thymeleaf 2,616
15 scriban 2,612
16 TemplateStudio 2,511
17 askama 2,394
18 RazorEngine 2,100
19 Sanitize 2,006
20 manifold 2,003
21 Giraffe 1,954
22 Tilt 1,931
23 Mustache.java 1,820
Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.