Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free. Learn more →
Top 19 C# Template engine Projects
-
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.
-
Nutrient
Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
-
-
-
You might notice that the prompt has template instructions in there. To create this we used the Fluid library which is based on the Liquid template language from Shopify. It's got some great features in it and helps to make the prompt generation pretty powerful.
-
-
craftsman
A .NET scaffolding tool to help you stop worrying about boilerplate and focus on your business logic 🚀
-
SmartFormat.NET
A lightweight text templating library written in C# which can be a drop-in replacement for string.Format
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
-
-
Project mention: Ask HN: Why do message queue-based architectures seem less popular now? | news.ycombinator.com | 2024-06-18
> What is taking so long for compiling?
Razor templates: https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razo... with this outside of MVC https://github.com/adoconnection/razorenginecore
Though to be honest, if it wasn't template compilation, it might as well be slow DB queries, slow external service calls, or anything else that you wouldn't want to do in the lifecycle of the user's request, if it concerns something that should happen in the background, not even related to a particular stack.
-
-
-
-
Westwind.Scripting
Dynamically compile and execute C# Code and Expressions at runtime. Also includes a light weight script templating engine using Handlebar style C# syntax.
-
-
-
-
MaltReport
A WYSIWYG document template engine to generates .odt/.ods/docx/xlsx/doc/xls documents for .NET
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C# Template engine discussion
C# Template engine related posts
-
Managing LLM prompts in DotNet with DotPrompt
-
Generating C# code programmatically
-
Scriban lightweight scripting language for .NET
-
Install DotLiquid library tester in my pipeline
-
Verticle Slice Architecture
-
Introducing TopazView: A Lightweight and Powerful View Engine
-
A Handlebar and Puppeteer Equivalent in C#?
-
A note from our sponsor - Nutrient
nutrient.io | 13 Feb 2025
Index
What are some of the best open-source Template engine projects in C#? This list will help you:
# | Project | Stars |
---|---|---|
1 | scriban | 3,319 |
2 | RazorEngine | 2,146 |
3 | RazorLight | 1,550 |
4 | fluid | 1,490 |
5 | Handlebars.Net | 1,295 |
6 | craftsman | 1,139 |
7 | SmartFormat.NET | 1,134 |
8 | DotLiquid | 1,066 |
9 | Nustache | 596 |
10 | RazorEngineCore | 591 |
11 | Stubble | 413 |
12 | Mustache Sharp | 306 |
13 | CodegenCS | 271 |
14 | Westwind.Scripting | 223 |
15 | cottle | 170 |
16 | jntemplate | 146 |
17 | Textrude | 129 |
18 | MaltReport | 126 |
19 | morestachio | 52 |