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: The PHP Orkestra Framework | dev.to | 2024-05-05

    As you can see this template will add and configura the Pest test suite with a custom TestCase class that will start the application for your tests, making easy to test your application services (as used by Orkestra itself) and you will see a basic application, with a single route in the file config/routes.php that calls a Controller that simply render a Twig view.

  • 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: XRB alternatives - Haml, Slim, and Hamlit | libhunt.com/r/xrb | 2024-04-30
  • Haml

    HTML Abstraction Markup Language - A Markup Haiku

  • Project mention: XRB alternatives - Haml, Slim, and Hamlit | libhunt.com/r/xrb | 2024-04-30
  • email-templates

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

  • SaaSHub

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

    SaaSHub 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

  • XRB is a templating system built loosely on top of XHTML markup

    1 project | news.ycombinator.com | 1 May 2024
  • XRB alternatives - Haml, Slim, and Hamlit

    4 projects | 30 Apr 2024
  • Show HN: Ditch your ORM with type-safe native SQL

    1 project | news.ycombinator.com | 9 Apr 2024
  • Show HN: Ditch your ORM with type-safe native SQL

    1 project | news.ycombinator.com | 9 Apr 2024
  • Generating C# code programmatically

    4 projects | dev.to | 5 Apr 2024
  • Show HN: Traits for Java via True Delegation

    1 project | news.ycombinator.com | 5 Apr 2024
  • Show HN: Automatic Type-Safe CSV

    1 project | news.ycombinator.com | 2 Apr 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 8 May 2024
    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. Learn more →

Index

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

Project Stars
1 Liquid 10,817
2 Jinja2 9,962
3 Twig 8,018
4 Blade 5,825
5 Slim 5,274
6 Haml 3,744
7 email-templates 3,627
8 rivets 3,230
9 tera 3,229
10 askama 3,111
11 DocPad 3,054
12 Mustache 3,011
13 quicktemplate 3,006
14 scriban 2,927
15 Thymeleaf 2,727
16 fatfree 2,644
17 TemplateStudio 2,619
18 manifold 2,226
19 RazorEngine 2,114
20 Giraffe 2,059
21 Sanitize 2,017
22 Tilt 1,943
23 maud 1,932

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