Marten::Conf::GlobalSettings::Templates
Allows to configure templates-related settings.
Instance methods
Returns a boolean indicating whether templates should be looked for inside installed applications.
Allows to set whether templates should be looked for inside installed applications.
Returns a boolean indicating whether templates should be looked for inside installed applications.
Returns a boolean indicating whether templates should be kept in a memory cache upon being loaded and parsed.
Allows to set whether templates should be kept in a memory cache upon being loaded and parsed.
By default templates will be read from the filesystem and parsed every time they need to be rendered. When
setting this configuration option to true, compiled templates will be kept in memory and further renderings
of the same templates will result in previous compiled templates to be reused.
Returns a boolean indicating whether templates should be kept in a memory cache upon being loaded and parsed.
Returns an array of context producers that will be used to populate the context for each template.
Allows to set the context producers that will be used to populate the context for each template.
Returns an array of directories where templates should be looked for.
The order of these directories is important as it defines the order in which templates are searched for.
Allows to set the directories where templates should be looked for.
Returns a boolean indicating whether included templates should be isolated from the outer context by default.
Allows to define whether included templates should be isolated from the outer context by default.
Returns a boolean indicating whether included templates should be isolated from the outer context by default.
Allows to set the template loaders that are used. Overwrites all other options.