Technical foundation

Plain C# classes and Razor views

Blazing is a single NuGet package for ASP.NET Core on .NET 10. No template language of its own: you make blocks the way you are used to, and the management environment is in the package.

Specifications

The basics

Blocks

A block is a class

A block inherits from BlazingBlock, with [Block] on the class and [Field] on every field the editor fills in. The management environment makes the editor from the type.

  • Text, rich text, numbers and dates
  • Drop-down lists, radio buttons and colours
  • Images, links and forms
  • Lists of items, such as cards or questions
TextImageBlock.cs
[Block(Guid = "2f8c5d70-e1a4-4b39-9f62-7c0e4a8d1b56",
       DisplayName = "Text with image", Icon = "icon-0034")]
public class TextImageBlock : BlazingBlock
{
    [Field(TabName = "Content", DisplayName = "Heading", Mandatory = true)]
    public string Title { get; set; }

    [Field(TabName = "Content", DisplayName = "Text")]
    public HtmlString Text { get; set; }

    [Field(TabName = "Content", DisplayName = "Image")]
    public BlazingImage Image { get; set; }

    [Field(TabName = "Layout", DisplayName = "Image",
           StringFormat = StringFormat.RadioButtonList,
           AvailableValues = ["right=Right", "left=Left"])]
    public string ImagePosition { get; set; }
}

And a view

Every block has a controller and a Razor view. BlazingDisplayFor shows a field with the right html: an image with webp and lazy loading, a link that refuses a script, text encoded.

Views/Blocks/TextImageBlock.cshtml
@model TextImageBlock
<section class="text-image text-image-@(Model.ImagePosition ?? "right")">
    <div class="text-image-content">
        @Html.BlazingDisplayFor(m => m.Title, "h2")
        @Model.Text
    </div>
    @Html.BlazingDisplayFor(m => m.Image, "div.text-image-visual")
</section>

Built in

What Blazing takes care of

Security

Secure, without an outside service

No cookies and no tracking for the protection against abuse.

Want to build a site on Blazing?

We are happy to tell you how to start, and what Blazing does and does not do.