Razor

1 program Added 2026-02-13T12:30:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: ASP.NET Razor, Razor Syntax
Provenance: commit 77a1c35aae · authored 2026-02-13T15:19:39+01:00 · agent claude-code · model sonnet

Sources mentioning this language

2 sources · pl_id: pl/razor
LLM (this repo) · 1Pldb

Related languages

SPSS Syntax (0.17)Arden Syntax (0.16)SPSS (0.16)Cpp2 (0.14)SLAX (0.13)

LLM-contributed programs

Simple Razor Page Example

Provenance: commit 77a1c35aae · authored 2026-02-13T15:19:39+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.cshtml · added: 2026-02-13T12:30:00Z
@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
    var message = "Welcome to Razor";
    var items = new List<string> { "Apple", "Banana", "Cherry" };
}

<h1>@message</h1>

<div class="container">
    <p>Current time: @DateTime.Now.ToString("HH:mm:ss")</p>

    @if (Model.IsLoggedIn)
    {
        <p>Hello, @Model.Username!</p>
    }
    else
    {
        <p>Please <a href="/login">log in</a>.</p>
    }

    <h2>Fruit List</h2>
    <ul>
        @foreach (var item in items)
        {
            <li>@item</li>
        }
    </ul>

    @{
        var total = items.Count;
    }
    <p>Total items: @total</p>
</div>

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Razor (mapped to pl/razor). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Razor/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Rayuela rbasic →