Razor |
public static class RazorCoreEngine
The RazorCoreEngine type exposes the following members.
| Name | Description | |
|---|---|---|
| Compile | Compile 'script' under 'key' (no-op if already cached). When cacheDir is set, a persisted assembly is reused (and invalidated by lastModification), mirroring GetGlobalAssemblyCache/SaveAssemblyInCache. | |
| IsTemplateCached | Returns true if a compiled template is cached under the given key | |
| Run | Run the compiled template cached under 'key' with the given model and ViewBag, and return the rendered result |