handlebars/src/main/java/com/github/jknack/handlebars/internal/Lambdas.java
public static Template compile(final Handlebars handlebars,
      final Lambda<Object, Object> lambda, final Context scope,
      final Template template, final String startDelimiter,
      final String endDelimiter)
      throws IOException {
    Object value = lambda.apply(scope, template);
    final Template result;
    if (value instanceof CharSequence) {
      result = handlebars.compileInline(value.toString(), startDelimiter, endDelimiter);
    } else {
      // Don't escape no string values.
      result = new Text(handlebars, value.toString());
    }
    return result;
  }
/**
   * Compile the given lambda.
   *
   * @param handlebars The handlebars.
   * @param lambda The lambda.
   * @param scope The current scope.
   * @param template The template.
   * @param startDelimiter The start delimiter.
   * @param endDelimiter The end delimiter.
   * @return The resulting template.
   * @throws IOException If the resource cannot be loaded.
   */
Compile the given lambda.
@param handlebars The handlebars.
@param lambda The lambda.
@param scope The current scope.
@param template The template.
@param startDelimiter The start delimiter.
@param endDelimiter The end delimiter.
@return The resulting template.
@throws IOException If the resource cannot be loaded.
Compile the given lambda . @param handlebars The handlebars . @param lambda The lambda . @param scope The current scope . @param template The template . @param startDelimiter The start delimiter . @param endDelimiter The end delimiter . @return The resulting template . @throws IOException If the resource cannot be loaded .
public static Template compile(final Handlebars handlebars,
      final Lambda<Object, Object> lambda, final Context scope,
      final Template template, final String startDelimiter,
      final String endDelimiter)
      throws IOException {
    Object value = lambda.apply(scope, template);
    final Template result;
    if (value instanceof CharSequence) {
      result = handlebars.compileInline(value.toString(), startDelimiter, endDelimiter);
    } else {
      result = new Text(handlebars, value.toString());
    }
    return result;
  }
public static Template compile ( final Handlebars handlebars , final Lambda < Object , Object > lambda , final Context scope , final Template template , final String startDelimiter , final String endDelimiter ) throws IOException { Object value = lambda . apply ( scope , template ) ; final Template result ; if ( value instanceof CharSequence ) { result = handlebars . compileInline ( value . toString ( ) , startDelimiter , endDelimiter ) ; } else { result = new Text ( handlebars , value . toString ( ) ) ; } return result ; }
Compile the given lambda.
Compile the given lambda .
// Don't escape no string values.