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. Learn more →
Top 18 C# Template engine Projects
-
-
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.
-
-
-
-
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-17There’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.
-
-
-
-
-
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
-
-
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.
-
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.
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C# Template engine related posts
- A Handlebar and Puppeteer Equivalent in C#?
- C# Library for Go template
- Sending HTML based emails. Is there an easier way to dynamically generate the document?
- How to generate PDF and HTML in 2023?
- Can anyone recommend good examples of REST API
- Declarative code generation in Unity
- QuestPDF: Modern .NET library for PDF document generation
-
A note from our sponsor - SonarLint
www.sonarlint.org | 8 Jun 2023
Index
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 |