use of org.thymeleaf.resource.StringResource in project thymeleaf-tests by thymeleaf.
the class ElementProcessorIteratorTest method computeHtmlTag.
private static TagObtentionTemplateHandler computeHtmlTag(final String input, final Set<IDialect> dialects) {
final String templateName = "test";
final TagObtentionTemplateHandler handler = new TagObtentionTemplateHandler();
final IEngineConfiguration templateEngineContext = TestTemplateEngineConfigurationBuilder.build(dialects);
HTML_PARSER.parse(templateEngineContext, TemplateMode.HTML, new StringResource(templateName, input), handler);
return handler;
}
use of org.thymeleaf.resource.StringResource in project thymeleaf-tests by thymeleaf.
the class OpenElementTagTest method computeXmlTag.
private static IOpenElementTag computeXmlTag(final String input) {
final String templateName = "test";
final TagObtentionTemplateHandler handler = new TagObtentionTemplateHandler();
XML_PARSER.parse(TEMPLATE_ENGINE_CONFIGURATION, TemplateMode.XML, new StringResource(templateName, input), handler);
return handler.tag;
}
use of org.thymeleaf.resource.StringResource in project thymeleaf-tests by thymeleaf.
the class OpenElementTagTest method computeHtmlTag.
private static IOpenElementTag computeHtmlTag(final String input) {
final String templateName = "test";
final TagObtentionTemplateHandler handler = new TagObtentionTemplateHandler();
HTML_PARSER.parse(TEMPLATE_ENGINE_CONFIGURATION, TemplateMode.HTML, new StringResource(templateName, input), handler);
return handler.tag;
}
use of org.thymeleaf.resource.StringResource in project thymeleaf-tests by thymeleaf.
the class StandaloneElementTagTest method computeXmlTag.
private static IStandaloneElementTag computeXmlTag(final String input) {
final String templateName = "test";
final TagObtentionTemplateHandler handler = new TagObtentionTemplateHandler();
XML_PARSER.parse(TEMPLATE_ENGINE_CONFIGURATION, TemplateMode.XML, new StringResource(templateName, input), handler);
return handler.tag;
}
use of org.thymeleaf.resource.StringResource in project thymeleaf-tests by thymeleaf.
the class StandaloneElementTagTest method computeHtmlTag.
private static IStandaloneElementTag computeHtmlTag(final String input) {
final String templateName = "test";
final TagObtentionTemplateHandler handler = new TagObtentionTemplateHandler();
HTML_PARSER.parse(TEMPLATE_ENGINE_CONFIGURATION, TemplateMode.HTML, new StringResource(templateName, input), handler);
return handler.tag;
}
Aggregations