Reusing Templates and Code Tutorials
Re-using templates and code
This will show you how to place partial templates into separate files, and how to put functions you need in many places in separate files as well. It focuses on
CreateInstance. You'll see the sources of the other files at the bottom of this page.
Reusing Shared Stuff Examples
Reuse template with @RenderPage
Reuse Razor Helpers (mini-templates) with CreateInstance
Reuse a function library CreateInstance
Reuse code with .cs files
new in v10
CreateInstance is enhanced in 2sxc 10.01 to support .cs files to share code across Razor files and WebApi Controllers.
Split Razor Templates into C#-Code and Template
new in v11
Now you can split out complicated C# code so designers don't have to worry about it.