Skip to main content

Razor Blade Tutorials

Tutorial HomeRazor.Blade

RazorBlade Fluent Tag API @Tag.Custom("your-tag") v3

All Html5 tags are available under Tag.xxx(). In case you need a custom tag - like an <app-root></app-root> for angular, you'll need the @Tag.Custom(...).

Source Code of this file

Below you'll see the source code of the file. Note that we're just showing the main part, and hiding some parts of the file which are not relevant for understanding the essentials.

@inherits ToSic.Sxc.Dnn.RazorComponent
@using ToSic.Razor.Blade;
<!-- unimportant stuff, hidden -->
RazorBlade Fluent Tag API @@Tag.Custom(... <!-- unimportant stuff, hidden -->

@Tag.Custom("app-root")

<!-- unimportant stuff, hidden -->