C# Template engine

Open-source C# projects categorized as Template engine

Top 19 C# Template engine Projects

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

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

    Nutrient logo
  3. RazorEngine

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

  4. RazorLight

    Template engine based on Microsoft's Razor parsing engine for .NET Core

  5. fluid

    Fluid is an open-source .NET template engine based on the Liquid template language.

    Project mention: Managing LLM prompts in DotNet with DotPrompt | dev.to | 2024-10-27

    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.

  6. Handlebars.Net

    A real .NET Handlebars engine

  7. craftsman

    A .NET scaffolding tool to help you stop worrying about boilerplate and focus on your business logic 🚀

  8. SmartFormat.NET

    A lightweight text templating library written in C# which can be a drop-in replacement for string.Format

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

    CodeRabbit logo
  10. DotLiquid

    .NET Port of Tobias Lütke's Liquid template language.

  11. Nustache

    Logic-less templates for .NET

  12. RazorEngineCore

    .NET6 Razor Template Engine

    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.

  13. Stubble

    Trimmed down {{mustache}} templates in .NET (by StubbleOrg)

  14. Mustache Sharp

    An extension of the mustache text template engine for .NET.

  15. CodegenCS

    C# Toolkit for Code Generation (T4 alternative!)

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

  17. cottle

    Fast, light & extensible template engine for C#

  18. jntemplate

    jntemplate is an fast and lightweight html templating engine for C# .NET.

  19. Textrude

    Code generation from YAML/JSON/CSV models via SCRIBAN templates

  20. MaltReport

    A WYSIWYG document template engine to generates .odt/.ods/docx/xlsx/doc/xls documents for .NET

  21. morestachio

    Lightweight, powerful, flavorful, template engine.

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

C# Template engine discussion

Log in or Post with

C# Template engine related posts

  • Managing LLM prompts in DotNet with DotPrompt

    3 projects | dev.to | 27 Oct 2024
  • Generating C# code programmatically

    4 projects | dev.to | 5 Apr 2024
  • Scriban lightweight scripting language for .NET

    1 project | news.ycombinator.com | 21 Sep 2023
  • Install DotLiquid library tester in my pipeline

    1 project | /r/azuredevops | 16 Jul 2023
  • Verticle Slice Architecture

    1 project | /r/dotnet | 18 Jun 2023
  • Introducing TopazView: A Lightweight and Powerful View Engine

    5 projects | /r/csharp | 9 Jun 2023
  • A Handlebar and Puppeteer Equivalent in C#?

    5 projects | /r/dotnet | 27 May 2023
  • A note from our sponsor - Nutrient
    nutrient.io | 13 Feb 2025
    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 →

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

Sponsored
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.
nutrient.io