C# Template engine

Open-source C# projects categorized as Template engine

Top 18 C# Template engine Projects

  • scriban

    A fast, powerful, safe and lightweight scripting language and engine for .NET

    Project mention: A Handlebar and Puppeteer Equivalent in C#? | /r/dotnet | 2023-05-27
  • RazorEngine

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

    Project mention: C# Library for Go template | /r/csharp | 2023-05-24

    There's a load of packages to do it for example https://github.com/Antaris/RazorEngine

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • RazorLight

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

    Project mention: A Handlebar and Puppeteer Equivalent in C#? | /r/dotnet | 2023-05-27
  • fluid

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

    Project mention: A Handlebar and Puppeteer Equivalent in C#? | /r/dotnet | 2023-05-27
  • Handlebars.Net

    A real .NET Handlebars engine

    Project mention: A Handlebar and Puppeteer Equivalent in C#? | /r/dotnet | 2023-05-27
  • DotLiquid

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

    Project mention: Using DotLiquid to create a custom template in Asp.Net Core | dev.to | 2022-09-01

    Liquid is an open-source template language created by Shopify and written in Ruby. It can be used to add dynamic content to pages, and to create a wide variety of custom templates. While DotLiquid is a templating system ported to the .NET framework from Ruby’s Liquid Markup.

  • SmartFormat.NET

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

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • craftsman

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

    Project mention: Anyone have a link to a public repo of a full scale web project? | /r/dotnet | 2023-04-17

    There’s some stuff I’d tweak on this project but it has some more advanced concepts you can check out. If you want to play around with something similar (several updates since this project) and get past the boilerplate you can check out this project.

  • Nustache

    Logic-less templates for .NET

  • RazorEngineCore

    .NET6 Razor Template Engine

  • Stubble

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

  • Mustache Sharp

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

  • CodegenCS

    C# Toolkit for Code Generation (T4 alternative!)

    Project mention: GitHub - CodegenCS/CodegenCS: C# Library for Code Generation | /r/dotnet | 2022-09-11

    For anyone who is interested, I've updated the whole documentation which was a little confusing before. Hope it's better now. https://github.com/CodegenCS/CodegenCS https://github.com/CodegenCS/CodegenCS/tree/master/src/Core/CodegenCS

  • MaltReport

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

  • jntemplate

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

  • Textrude

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

    Project mention: Is there a source generator that generates poco classes from a JSON schema? | /r/csharp | 2022-06-11

    Fair point - source generators can run arbitrary code so yes, they can read a json file and then spit out something else in response. If you want to translate the json schema into the equivalent C# you'll need to write a small amount of code to deserialize the json into a JObject tree, walk it, and emit c# code. I do something similar in my Textrude code-generation/templating project except I'm translating the tree into an equivalent Scriban object tree. The relevant source code is here. All that said, this is a fairly specialised and common task - I can't believe there's not a command line tool to do this already.

  • NTypewriter

    File/code generator from scriban text templates populated with data about C# code.

    Project mention: Embedded source generation? | /r/csharp | 2022-11-24

    With NTypewriter you can generate anything. It connects Scriban templates with data exposed from Roslyn API. You can run templates from VS (design time) or embed them (run time) into your application with the help of Buildalayzer.

  • morestachio

    Lightweight, powerful, flavorful, template engine.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

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). The latest post mention was on 2023-05-27.

C# Template engine related posts


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

Project Stars
1 scriban 2,479
2 RazorEngine 2,091
3 RazorLight 1,390
4 fluid 1,071
5 Handlebars.Net 1,014
6 DotLiquid 972
7 SmartFormat.NET 950
8 craftsman 921
9 Nustache 578
10 RazorEngineCore 470
11 Stubble 345
12 Mustache Sharp 294
13 CodegenCS 140
14 MaltReport 118
15 jntemplate 98
16 Textrude 96
17 NTypewriter 83
18 morestachio 46
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives