public class HTMLTemplateCompiler extends Object implements org.everit.templating.TemplateCompiler
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ATTRIBUTE_PREFIX
Default prefix for HTML templating attributes.
|
| Constructor and Description |
|---|
HTMLTemplateCompiler(org.everit.expression.ExpressionCompiler expressionCompiler)
Creates a new TemplateCompiler with the "data-eht-" default attribute
prefix.
|
HTMLTemplateCompiler(org.everit.expression.ExpressionCompiler expressionCompiler,
Map<String,org.everit.templating.TemplateCompiler> inlineCompilers)
Creates a new TemplateCompiler with the "data-eht-" default attribute
prefix.
|
HTMLTemplateCompiler(String ehtAttributeprefix,
org.everit.expression.ExpressionCompiler expressionCompiler,
Map<String,org.everit.templating.TemplateCompiler> inlineCompilers)
Creates a new TemplateCompiler with the "data-eht-" default attribute
prefix.
|
| Modifier and Type | Method and Description |
|---|---|
org.everit.templating.CompiledTemplate |
compile(char[] document,
int templateStart,
int templateLength,
org.everit.expression.ParserConfiguration parserConfiguration) |
org.everit.templating.CompiledTemplate |
compile(String template,
org.everit.expression.ParserConfiguration parserConfiguration) |
public static final String DEFAULT_ATTRIBUTE_PREFIX
public HTMLTemplateCompiler(org.everit.expression.ExpressionCompiler expressionCompiler)
expressionCompiler - The compiler for expressions.public HTMLTemplateCompiler(org.everit.expression.ExpressionCompiler expressionCompiler,
Map<String,org.everit.templating.TemplateCompiler> inlineCompilers)
expressionCompiler - The compiler for expressions.inlineCompilers - Inline compilers can be used to put fragments into the HTML template with different
syntax. E.g.: A Javascript should be templated with different syntax.public HTMLTemplateCompiler(String ehtAttributeprefix, org.everit.expression.ExpressionCompiler expressionCompiler, Map<String,org.everit.templating.TemplateCompiler> inlineCompilers)
expressionCompiler - The compiler for expressions.inlineCompilers - Inline compilers can be used to put fragments into the HTML template with different
syntax. E.g.: A Javascript should be templated with different syntax.ehtAttributeprefix - The prefix of the attributes of HTML templating.public org.everit.templating.CompiledTemplate compile(char[] document,
int templateStart,
int templateLength,
org.everit.expression.ParserConfiguration parserConfiguration)
compile in interface org.everit.templating.TemplateCompilerpublic org.everit.templating.CompiledTemplate compile(String template, org.everit.expression.ParserConfiguration parserConfiguration)
compile in interface org.everit.templating.TemplateCompilerCopyright © 2011–2018 Everit Kft.. All rights reserved.