Skip to content

Template factory

Alexanderius edited this page Jul 3, 2025 · 3 revisions

Template factory

TemplateFactory is a class for loading HTML templates.

  • You can load templates by Load("template name") or LoadAsync("template name") methods.
  • Templates are loaded from the specified templates folder in Simplify.Web configuration or from the current assembly (this option can also be enabled in Simplify.Web configuration).
  • Templates can be cached in memory (this option can also be enabled in Simplify.Web configuration).
  • For static pages, it is recommended to use the respective StaticTpl controller response instead of TemplateFactory directly.

<< Previous page Next page >>

Clone this wiki locally