SaaSHub helps you find the best software and product alternatives 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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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.
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.
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
-
XRB is a templating system built loosely on top of XHTML markup
-
XRB alternatives - Haml, Slim, and Hamlit
4 projects | 30 Apr 2024 -
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 note from our sponsor - SaaSHub
www.saashub.com | 13 May 2024
Index
What are some of the best open-source Template engine projects? This list will help you:
Project | Stars | |
---|---|---|
1 | Liquid | 10,827 |
2 | Jinja2 | 9,977 |
3 | Twig | 8,027 |
4 | Blade | 5,822 |
5 | Slim | 5,275 |
6 | Haml | 3,744 |
7 | email-templates | 3,628 |
8 | rivets | 3,230 |
9 | tera | 3,238 |
10 | askama | 3,125 |
11 | DocPad | 3,054 |
12 | Mustache | 3,010 |
13 | quicktemplate | 3,010 |
14 | scriban | 2,939 |
15 | Thymeleaf | 2,730 |
16 | fatfree | 2,646 |
17 | TemplateStudio | 2,625 |
18 | manifold | 2,233 |
19 | RazorEngine | 2,123 |
20 | Giraffe | 2,059 |
21 | Sanitize | 2,017 |
22 | Tilt | 1,944 |
23 | maud | 1,940 |
Sponsored