The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 23 Template engine Open-Source Projects
-
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.
-
Slim
Slim is a template language whose goal is to reduce the syntax to the essential parts without becoming cryptic. (by slim-template)
-
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.
-
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.
-
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
-
Thymeleaf
Thymeleaf is a modern server-side Java template engine for both web and standalone environments.
-
fatfree
A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!
-
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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
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.
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.
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.
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.
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!
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).
Project mention: Templ: A language for writing HTML user interfaces in Go | news.ycombinator.com | 2023-12-10Here 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
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.
Project mention: A Ride Through Optimising Legacy Spring Boot Services For High Throughput | dev.to | 2024-03-24Thymeleaf 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:
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.
Project mention: Show HN: Ditch your ORM with type-safe native SQL | news.ycombinator.com | 2024-04-09
There's a load of packages to do it for example https://github.com/Antaris/RazorEngine
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.
Project mention: Templ: A language for writing HTML user interfaces in Go | news.ycombinator.com | 2023-12-10I 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).
Template engine related posts
- Show HN: Ditch your ORM with type-safe native SQL
- Show HN: Ditch your ORM with type-safe native SQL
- Generating C# code programmatically
- Show HN: Traits for Java via True Delegation
- Show HN: Automatic Type-Safe CSV
- A Ride Through Optimising Legacy Spring Boot Services For High Throughput
- Instantly preview rendered liquid template
-
A note from our sponsor - WorkOS
workos.com | 24 Apr 2024
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