Click or drag to resize

SealCoreTemplateBase Class

Base template every Seal Razor template/partial compiles against when RazorHelper.UseRazorCore is on. Reproduces the Antaris fork contract used by Seal templates: - bare @expr is HTML-encoded by default; @Raw(...) is emitted raw - @Include(key, model) resolves a previously-compiled partial BY KEY and emits it raw (nestable) - a dynamic ViewBag shared down the include chain
Inheritance Hierarchy
RazorEngineTemplateBase
  Seal.HelpersSealCoreTemplateBase

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public class SealCoreTemplateBase : RazorEngineTemplateBase

The SealCoreTemplateBase type exposes the following members.

Constructors
 NameDescription
Public methodSealCoreTemplateBaseInitializes a new instance of the SealCoreTemplateBase class
Top
Properties
 NameDescription
Public propertyViewBagDynamic state bag, shared with included partials (fork parity).
Top
Methods
 NameDescription
Public methodInclude@Include(key, model) -> run the partial cached under 'name' and emit its output raw.
Public methodRaw@Raw(...) -> emit as-is.
Public methodWrite@expr -> HTML-encode unless it is already raw content.
Top
See Also