# toddams/RazorLight

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

Repository: https://github.com/toddams/RazorLight
Canonical: https://ross.abutalabs.com/products/razorlight
Language: C#
License: Apache-2.0
License Family: permissive
Topics: razor, razor-parsing-engine, template-engine, dotnet-core, netcore, razorengine, razorengine-alternative
Last push: 2024-07-06T00:44:05+00:00

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

## Adoption (not part of the score)
Stars 1661, forks 271 (observed 2026-08-28T04:05:18.491382+00:00)

## What it is
RazorLight is a .NET template engine built on Microsoft's Razor parsing engine, letting you render Razor templates from strings, files, embedded resources, databases, or custom sources outside of ASP.NET MVC. It targets .NET Standard 2.0 and .NET Core with minimal dependencies and strong performance.

## Use cases
- render razor templates outside asp.net mvc
- generate html emails from razor templates in .net
- compile and cache templates from strings or files
- build template engine alternative to RazorEngine on .NET Core
- render templates from database or embedded resources

## When to choose
- you need Razor syntax templating in a non-MVC .NET Core or .NET Standard application
- you want to load templates from flexible sources like strings, files, or a database
- you need a maintained RazorEngine alternative for .NET Core

## When to avoid
- you are building a full ASP.NET MVC app where built-in Razor view rendering suffices
- you need a general-purpose text templating language like Mustache or Handlebars
- you require very frequent new feature development, as the project is in maintenance mode

## Facets
- artifact type: library
- maturity: maintenance
- function: templating, parser
- domain: web-development, developer-tools
- platform: dotnet, cross-platform
- tags: razor, template-engine, netstandard, csharp, razorengine-alternative, dotnet

## Member repositories
- toddams/RazorLight (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:18.491382+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-30T03:44:38.913132+00:00, confidence not recorded.
  - readme: https://github.com/toddams/RazorLight (fetched 2026-08-28T04:05:18.491382+00:00, sha 695b238fdc70)
- Data as of 2026-08-30T08:39:29.467469+00:00.
