Razor Templates
Token Templates will generate HTML - often based on the data a editor entered, and/or which was provided from the App.
Note
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 .cshtml
.
Here's a simple example from the Tutorial:
@inherits Custom.Hybrid.Razor12
<h2>Hello World</h2>
<div>
Now is @DateTime.Now
</div>
👉 The technical details are explained in Razor Components / Templates
Discover More in the Razor Tutorials
We have an rich series of Razor tutorials. You should really check them out 👍.
History
- Introduced in 2sxc 2.0