Package com.github.jknack.handlebars
package com.github.jknack.handlebars
-
ClassDescriptionMustache/Handlebars are contextual template engines.A context builder.A decorator allows a declarative means to both annotate particular blocks with metadata as well as to wrap in behaviors when desired, prior to execution.A strategy for determining how to escape a variable (
{{variable}})..Handlebars escaping strategy.Format a variable to something else.Call the next formatter in the chain.Handlebars provides the power necessary to let you build semantic templates effectively with no frustration.AHandlebars.SafeStringtellHandlebarsthat the content should not be escaped as HTML.Utilities function like:Handlebars.Utils.escapeExpression(CharSequence)andHandlebars.Utils.isEmpty(Object).Useful information about a handlebar error.If something goes wrong this exception will happen.Helper<T>Handlebars helpers can be accessed from any context in a template.The helper registry.Lambda<C,O> When the value is a callable object, such as a lambda, the object will be invoked and passed the block of text.Options available forHelper.apply(Object, Options).Buffer like use it to increase rendering time while using helpers.AnOptionsbuilder.AStringBuilderimplementation.This buffer will write into the underlying writer.The Handlebars Parser.Creates a new Handlebars parser.Compile mustache/handlebars expressions.Compiled version of path expression, like:this,foo,foo.bar.Call the next expression in the chain and/or finalize the process if this was the tail.Tags are indicated by the double mustaches.A compiled template created byHandlebars.compileInline(String).Make handlebars templates type-safe.A hook interface for resolving values from thecontext stack.