Package com.mohamnag.jstatic.plugins.handlebars_template_compiler
package com.mohamnag.jstatic.plugins.handlebars_template_compiler
-
ClassDescriptionLoads the configuration from "handlebars-template-compiler" key and expects following sub-keys: "base-dir" pointing to templates' base, this path will be prepended to all other paths and every look up is restricted to be inside this path "template-data-field" defines the name of the field under which each node of data tree can specify its own template to be used for template lookup "default-template" defines the default template that will be used if a node does not specify its own "target-data-field" the field's name under which the compilation result for each node of data tree will be stored "helpers" list of helpers that should be registered.Compiles each page's data using defined template and puts the result under
HandlebarsTemplateCompilerConfig.getTargetDataField()
data field.