Class HandlebarsManager


  • public class HandlebarsManager
    extends Object
    Manages charset-aware handlebars instances.
    • Constructor Detail

      • HandlebarsManager

        public HandlebarsManager​(List<ResourceCollection> templateDirs,
                                 PluginContextOptions pluginContextOptions)
        Parameters:
        templateDirs - Template base directories
        pluginContextOptions - Plugin context options
    • Method Detail

      • get

        public com.github.jknack.handlebars.Handlebars get​(String escapingStrategy,
                                                           String charset)
        Get handlebars instance with escaping for file extension and charset.
        Parameters:
        escapingStrategy - Escaping strategy plugin name
        charset - Charset
        Returns:
        Handlebars instance