Templates with Handlebars. Handlebars is a popular JavaScript templating engine. Unlike React, Handlebars does not really concentrate on the application business logic aspect, but much more on the “rendering” things. Because the framework is very light, it is fairly easy to integrate in a JavaScript application.
![Template Template](https://codescience.com/images/uploads/about/grip-handlebars1.png)
Field Summary
Fields Modifier and Type Field and Description static Template
EMPTY
Method Summary
All MethodsInstance MethodsAbstract Methods Modifier and Type Method and Description java.lang.String
apply(Context context)
Merge the template tree using the given context.void
apply(Context context, java.io.Writer writer)
java.lang.String
apply(java.lang.Object context)
Merge the template tree using the given context.void
apply(java.lang.Object context, java.io.Writer writer)
<T> TypeSafeTemplate<T>
as()
Creates a newTypeSafeTemplate
.<T,S extends TypeSafeTemplate<T>>
Sas(java.lang.Class<S> type)
java.util.List<java.lang.String>
collect(TagType... tagType)
Collect all the tag names under the given tagType.java.util.List<java.lang.String>
collectReferenceParameters()
Collects all the parameters which are also variables.java.lang.String
filename()
int[]
position()
java.lang.String
text()
java.lang.String
toJavaScript()
Convert this template to JavaScript template (a.k.a precompiled template).