Renders the fragment template at the directory.
Renders the fragment template at the directory.
contains the fragment
specific to the configured template engine
Renders the template at the location identified by the path (and may be options, depending on template engines).
Renders the template at the location identified by the path (and may be options, depending on template engines).
the template
specific to the configured template engine
Called once when Xitrum server starts.
Called once when Xitrum server starts. If necessary the template engine should allocate its resources here.
Called once when Xitrum server stops.
Called once when Xitrum server stops. If necessary the template engine should release its resources here.
Template engines should extend this trait and implement its methods. On startup, an instance of the configured template engine is created and used for every rendering request. Thus it should be thread-safe.