git404hub

what is minirazor fr?

tyrrrz/minirazor — explained in plain English

Analysis updated 2026-07-12 · repo last pushed 2023-07-16

230C#Audience · developerComplexity · 2/5DormantSetup · easy

tl;dr

MiniRazor is a .NET library that makes it easy to compile and render Razor templates, mixing text with C# code, to generate HTML or text, either at build time or at runtime.

vibe map

mindmap
  root((repo))
    What it does
      Razor template rendering
      Build-time compilation
      Run-time compilation
      Type-safe templates
    Use cases
      Email template systems
      Report generators
      Code generators
    Tech stack
      C-sharp
      dotNET
      Razor engine
    Audience
      dotNET developers
    Status
      Discontinued
      Alternatives suggested

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Generate personalized onboarding emails by filling in user details in a Razor template at runtime.

VIBE 2

Produce boilerplate C# files automatically using build-time Razor template compilation.

VIBE 3

Create formatted reports or HTML output from structured application data.

what's the stack?

C#.NETRazor

how it stacks up fr

tyrrrz/minirazoraayan555/ds4windowsqwilxy/paralives-release
Stars230220215
LanguageC#C#C#
Last pushed2023-07-16
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity2/52/51/5
Audiencedevelopergeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

Standard NuGet package install into a .NET project, the project is marked discontinued so users should also consider suggested alternatives.

in plain english

MiniRazor is a lightweight tool for .NET developers who want to use Razor templates to generate text or HTML. Razor is a templating syntax that lets you mix plain text with code, you write something like <p>Hello, @Model.Name!</p> and the code part gets replaced with actual values when the template runs. This project wraps the Razor engine in a simpler interface so developers can compile and render templates without dealing with a lot of complexity. The tool supports two main workflows. The first is build-time compilation, where templates are converted into regular C# classes when the project is built. This means the templates are ready to go as soon as the app runs, with no compilation overhead at runtime. The second is run-time compilation, where templates are compiled on the fly from their source code. This is useful when templates might change or are provided dynamically. In both cases, templates can be type-safe, you specify what kind of data the template expects, so mistakes like passing the wrong variable type get caught early. Typical users are .NET developers building things like email template systems, report generators, or any application that needs to produce formatted text or HTML from structured data. For example, a startup sending personalized onboarding emails could store the email layout as a Razor template and fill in each user's details at runtime. A team building a code generator could use build-time templates to produce boilerplate C# files automatically. One practical detail: the README notes that run-time compilation produces in-memory code that stays there by default, but developers can pass a custom assembly load context to control when that memory gets released. The project is marked as discontinued, and the README suggests two alternatives for different needs.

prompts (copy fr)

prompt 1
I'm a .NET developer who needs to generate personalized HTML emails from structured data. How would I use MiniRazor to compile a Razor template at runtime and render it with a model containing user details like name and signup date?
prompt 2
Help me set up MiniRazor build-time compilation so my Razor templates are compiled into C# classes during the project build, avoiding runtime compilation overhead. What configuration do I need?
prompt 3
Show me how to make a type-safe Razor template with MiniRazor that accepts a specific model class, so I get compile-time errors if I pass the wrong data type.
prompt 4
I want to control memory usage when using MiniRazor run-time compilation. How do I pass a custom assembly load context to manage when in-memory compiled code gets released?

Frequently asked questions

what is minirazor fr?

MiniRazor is a .NET library that makes it easy to compile and render Razor templates, mixing text with C# code, to generate HTML or text, either at build time or at runtime.

What language is minirazor written in?

Mainly C#. The stack also includes C#, .NET, Razor.

Is minirazor actively maintained?

Dormant — no commits in 2+ years (last push 2023-07-16).

How hard is minirazor to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is minirazor for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.