Package com.github.jknack.handlebars
Class PathCompiler
java.lang.Object
com.github.jknack.handlebars.PathCompiler
Compile mustache/handlebars expressions.
- Since:
- 4.0.1.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<PathExpression> Split the property name by separator (except within a [] escaped blocked) and create an array of it.static List<PathExpression> Split the property name by separator (except within a [] escaped blocked) and create an array of it.
-
Method Details
-
compile
Split the property name by separator (except within a [] escaped blocked) and create an array of it. The compiled expression will extend lookup to parent.- Parameters:
key- The property's name.- Returns:
- A path representation of the property (array based).
-
compile
Split the property name by separator (except within a [] escaped blocked) and create an array of it.- Parameters:
key- The property's name.parentScopeResolution- False, if we want to restrict lookup to current scope.- Returns:
- A path representation of the property (array based).
-