# Antaris/RazorEngine

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

Repository: https://github.com/Antaris/RazorEngine
Canonical: https://ross.abutalabs.com/products/razorengine
Homepage: http://antaris.github.io/RazorEngine
Language: C#
License: NOASSERTION
License Family: other
Last push: 2021-05-11T16:32:23+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5544, "days_push": 1940, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2159, forks 572 (observed 2026-08-28T04:06:20.750092+00:00)

## What it is
A .NET library that lets you compile and run Razor-syntax templates outside of ASP.NET, built on Microsoft's Razor parsing engine. It supports dynamic or strongly-typed models with template caching for repeated rendering.

## Use cases
- render razor templates outside asp.net
- generate html emails from c# templates
- compile templates with strongly typed models in dotnet
- use razor syntax in console applications
- cache and re-run compiled templates

## When to choose
- you need Razor syntax in non-web .NET applications
- you want to render dynamic text or HTML from C# models
- you need template compilation with caching for repeated renders

## When to avoid
- you are building a modern ASP.NET Core app with native Razor support
- you need actively maintained software - the project is seeking new maintainers
- you need non-Razor template syntax like Liquid or Handlebars

## Facets
- artifact type: library
- maturity: maintenance
- function: templating, parser
- domain: web-development, developer-tools
- platform: dotnet, windows, cross-platform
- tags: razor, csharp, template-engine, code-generation, email-templates

## Member repositories
- Antaris/RazorEngine (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:20.750092+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:50:19.248840+00:00, confidence not recorded.
  - readme: https://github.com/Antaris/RazorEngine (fetched 2026-08-28T04:06:20.750092+00:00, sha ba0422250a12)
  - homepage: http://antaris.github.io/RazorEngine (fetched 2026-08-29T10:30:09.225763+00:00, sha 42f755507884)
- Data as of 2026-08-30T08:39:29.467469+00:00.
