Class PathCompiler

java.lang.Object
com.github.jknack.handlebars.PathCompiler

@Deprecated(since="2024-07-10") public final class PathCompiler extends Object
Deprecated.
com.github.jknack.handlebars package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
Compile mustache/handlebars expressions.
Since:
4.0.1.
  • Method Details

    • compile

      public static List<PathExpression> compile(String key)
      Deprecated.
      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

      public static List<PathExpression> compile(String key, boolean parentScopeResolution)
      Deprecated.
      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).