Template engine

Top 23 Template engine Open-Source Projects

  • Liquid

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

  • Project mention: Instantly preview rendered liquid template | dev.to | 2024-03-20

    Liquid is a template language created by shopify. In my use case I use it for generate html that is almost similar looking but differs in data. So when iterating over my HTML, I need to preview the changes I made combined with my data.

  • Jinja2

    A very fast and expressive template engine.

  • 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.

    InfluxDB logo
  • Twig

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

  • Project mention: How to integrate Component Architecture into Symfony? | dev.to | 2024-03-15

    Miscommunication in our projects is costly. A single misunderstood User Story can result in 3 days of wasted development time. Additionally, when developers do not use the same programming language, it may be necessary to construct APIs to facilitate communication, which can also be expensive. It is important to consider why front-end developers may be hesitant to work with Twig and how this can lead to a disconnect between front-end and back-end development.

  • 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: Building a syntax highlighting extension for VS Code | dev.to | 2024-03-01

    I spent a few days of my spare time building a VS Code extension that would bring better syntax highlighting for the Slim template language to the editor. I quite enjoyed most of the process so I’d like to share what I learned.

  • Haml

    HTML Abstraction Markup Language - A Markup Haiku

  • Project mention: Building a syntax highlighting extension for VS Code | dev.to | 2024-03-01

    First of all, I like Slim. I like the beauty and cleanness of Slim templates, to me they are way more readable than regular ERB templates and I think they fit in the ruby/Rails ecosystem very well. Slim is a close cousin to Haml, without the ugly percent characters, haha. I've used Slim exclusively in my projects since about 2016.

  • email-templates

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

  • WorkOS

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

    WorkOS logo
  • rivets

    Lightweight and powerful data binding.

  • tera

    A template engine for Rust based on Jinja2/Django

  • Project mention: Getting Started with Axum - Rust's Most Popular Framework | dev.to | 2023-12-06

    You can also use HTML templating with crates like askama, tera and maud! This can be combined with the power of lightweight JavaScript libraries like htmx to speed up time to production. You can read more about this on our other article about using HTMX with Rust which you can find here.. We also collaborated with Stefan Baumgartner on an article for serving HTML with Askama!

  • askama

    Type-safe, compiled Jinja-like templates for Rust

  • Project mention: Deploying your Rust WASM Game to Web with Shuttle & Axum | dev.to | 2024-02-14

    I have inlined the CSS here, and you can use Rust-based tooling like Lightning CSS to minify and bundle CSS here. You might also want to create a Rust build script to generate the HTML from a template, using the askama crate (works a little like Jinja).

  • 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.

  • 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

  • scriban

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

  • Project mention: Generating C# code programmatically | dev.to | 2024-04-05

    Recently, while creating some experimental C# source code generators (xafero/csharp-generators), I was just concatenating strings together. Like you do, you know, if things have to go very quickly. If you have a simple use case, use a formatted multi-line string or some template library like scriban. But I searched for a way to generate more and more complicated logic easily - like for example, adding raw SQL handler methods to my pre-generated DBSet-like classes for my ADO.NET experiment. You could now say: Use Roslyn and that's really fine if you look everything up in a website like SharpLab, which shows immediately the syntax tree of our C# code.

  • Thymeleaf

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

  • Project mention: A Ride Through Optimising Legacy Spring Boot Services For High Throughput | dev.to | 2024-03-24

    Thymeleaf is used for serving frontend resources in this service, and it has cache enabled for static resources based on content. Something like the following properties:

  • fatfree

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

  • Project mention: Top 12 PHP Frameworks For Web Development in 2024 | dev.to | 2024-02-13

    Fat-Free Framework also known as F3, is an open-source PHP micro-framework designed for building web applications. It has 2.6k stars and 400+ forks on GitHub. It allows you only to use the necessary code. It doesn’t need complex configuration, such as setting up Composer, curl, or a complex directory structure. It supports SQL and NoSQL databases like MySQL, SQLite, MSSQL/Sybase, PostgreSQL, MongoDB, etc.

  • TemplateStudio

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

  • manifold

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

  • Project mention: Show HN: Ditch your ORM with type-safe native SQL | news.ycombinator.com | 2024-04-09
  • 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

  • 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.

  • Sanitize

    Ruby HTML and CSS sanitizer.

  • Tilt

    Generic interface to multiple Ruby template engines (by rtomayko)

  • maud

    :pencil: Compile-time HTML templates for Rust

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

    I would like to mention maud in this context:

    https://github.com/lambda-fairy/maud

    It is refreshingly different from other Rust templating libraries. It uses a proc-macro that compiles your HTML into Rust code. I also happen to use it in conjunction with HTMX and it works very well for me (at least in small projects).

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

Template engine related posts

Index

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

Project Stars
1 Liquid 10,794
2 Jinja2 9,941
3 Twig 8,009
4 Blade 5,827
5 Slim 5,271
6 Haml 3,748
7 email-templates 3,623
8 rivets 3,230
9 tera 3,210
10 askama 3,081
11 DocPad 3,051
12 Mustache 3,011
13 quicktemplate 3,001
14 scriban 2,905
15 Thymeleaf 2,720
16 fatfree 2,642
17 TemplateStudio 2,612
18 manifold 2,209
19 RazorEngine 2,114
20 Giraffe 2,049
21 Sanitize 2,018
22 Tilt 1,942
23 maud 1,920

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com