Template engine

Top 23 Template engine Open-Source Projects

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

  • Scout Monitoring

    Performance metrics and, now, Logs Management Monitoring with Scout Monitoring. Get early access to Scout Monitoring's NEW Ruby logging feature [beta] by signing up now. Start for free and enable logs to get better insights into your Rails apps.

    Scout Monitoring logo
  • Jinja2

    A very fast and expressive template engine.

  • 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: Show HN: Slab – A programmable markup language for generating HTML | news.ycombinator.com | 2024-07-23
  • email-templates

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

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

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

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

  • 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

  • Mustache

    Logic-less Ruby templates.

  • Thymeleaf

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

    Project mention: Spring Security Using Facebook Authorization: A Comprehensive Guide | dev.to | 2024-05-22
  • TemplateStudio

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

  • fatfree

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

    Project mention: The Demise of the Mildly Dynamic Website | news.ycombinator.com | 2024-06-19

    I would try some "old style" php frameworks. Like CodeIgniter or Yii.

    If you want even simpler, then maybe try Slim framework. You'll have to add your own data access libs.

    If you want Grug brain PHP then there's https://github.com/bcosca/fatfree

    You can also use composer package manager to build your framework with libs like routing, sql query builder, etc.

  • 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: Use DuckDB type-safely in Java | news.ycombinator.com | 2024-07-09
  • RazorEngine

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

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

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

  • Tilt

    Generic interface to multiple Ruby template engines (by rtomayko)

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

Log in or Post with

Template engine related posts

  • Show HN: Slab – A programmable markup language for generating HTML

    3 projects | news.ycombinator.com | 23 Jul 2024
  • Show HN: Use DuckDB type-safely in Java

    1 project | news.ycombinator.com | 9 Jul 2024
  • Java string interpolation feature was cancelled

    4 projects | news.ycombinator.com | 20 Jun 2024
  • Spring Security Using Facebook Authorization: A Comprehensive Guide

    2 projects | dev.to | 22 May 2024
  • Show HN: Rational numbers for Java, why not?

    1 project | news.ycombinator.com | 21 May 2024
  • Understanding Thymeleaf: A Powerful Java Template Engine

    1 project | dev.to | 13 May 2024
  • Spring Boot with Thymeleaf and Bootstrap

    2 projects | dev.to | 13 May 2024
  • A note from our sponsor - Scout Monitoring
    www.scoutapm.com | 24 Jul 2024
    Get early access to Scout Monitoring's NEW Ruby logging feature [beta] by signing up now. Start for free and enable logs to get better insights into your Rails apps. Learn more →

Index

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

Project Stars
1 Liquid 10,939
2 Jinja2 10,119
3 Twig 8,071
4 Blade 5,829
5 Slim 5,291
6 Haml 3,750
7 email-templates 3,637
8 tera 3,349
9 askama 3,244
10 rivets 3,225
11 DocPad 3,054
12 scriban 3,034
13 quicktemplate 3,028
14 Mustache 3,025
15 Thymeleaf 2,761
16 TemplateStudio 2,654
17 fatfree 2,652
18 manifold 2,307
19 RazorEngine 2,123
20 Giraffe 2,087
21 Sanitize 2,020
22 maud 1,995
23 Tilt 1,944

Sponsored
Performance metrics and, now, Logs Management Monitoring with Scout Monitoring
Get early access to Scout Monitoring's NEW Ruby logging feature [beta] by signing up now. Start for free and enable logs to get better insights into your Rails apps.
www.scoutapm.com

Did you konow that Ruby is
the 12th most popular programming language
based on number of metions?