use of org.thymeleaf.resource.StringResource in project thymeleaf-tests by thymeleaf.
the class ElementAttributesTest method computeXmlAttributes.
private static IElementAttributes computeXmlAttributes(final String input) {
final String templateName = "test";
final ElementAttributeObtentionTemplateHandler handler = new ElementAttributeObtentionTemplateHandler();
XML_PARSER.parse(TEMPLATE_ENGINE_CONFIGURATION, TemplateMode.XML, new StringResource(templateName, input), handler);
return handler.elementAttributes;
}
use of org.thymeleaf.resource.StringResource in project thymeleaf-tests by thymeleaf.
the class ElementAttributesTest method computeHtmlAttributes.
private static IElementAttributes computeHtmlAttributes(final String input) {
final String templateName = "test";
final ElementAttributeObtentionTemplateHandler handler = new ElementAttributeObtentionTemplateHandler();
HTML_PARSER.parse(TEMPLATE_ENGINE_CONFIGURATION, TemplateMode.HTML, new StringResource(templateName, input), handler);
return handler.elementAttributes;
}
Aggregations