Token Templates will generate HTML - often based on the data a editor entered, and/or which was provided from the App.
The View determines which template file is being loaded.
How it Works
Razor templates are files in the App Folder or a subfolder, beginning with an
_ and ending with
Here's a simple example from the Tutorial:
@inherits ToSic.Sxc.Dnn.RazorComponent <h2>Hello World</h2> <div> Now is @DateTime.Now </div>
👉 The technical details are explained in Razor Components / Templates
Discover More in the Razor TutorialsWe have an rich series of Razor tutorials. You should really check them out 👍.
- Introduced in 2sxc 2.0