Skip to content

Template factory

Alexanderius edited this page Jun 7, 2024 · 2 revisions

Template factory

TemplateFactory is the class for loading HTML templates.

  • You can load templates by Load("template name") or LoadAsync("template name") methods;
  • Templates loads from specified templates folder in Simplify.Web configuration or from 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 respective StaticTpl controller response instead of TemplateFactory.

<< Previous page Next page >>

Clone this wiki locally