use of org.thymeleaf.Arguments in project thymeleaf-tests by thymeleaf.
the class TemplateParserTest method createOutput.
private String createOutput(final Document document) throws IOException {
final TemplateProcessingParameters templateProcessingParameters = new TemplateProcessingParameters(this.configuration, "test", new Context());
final TemplateResolution templateResolution = new TemplateResolution("test", "test", new ClassLoaderResourceResolver(), "UTF-8", "XHTML", new NonCacheableCacheEntryValidity());
final Arguments arguments = new Arguments(new TemplateEngine(), templateProcessingParameters, templateResolution, new TemplateRepository(this.configuration), document);
final StringWriter stringWriter = new StringWriter();
final ITemplateWriter templateWriter = this.configuration.getTemplateModeHandler("XHTML").getTemplateWriter();
templateWriter.write(arguments, stringWriter, document);
return stringWriter.toString();
}
Aggregations