Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Template factory

Alexanderius edited this page Jun 29, 2019 · 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 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