本文整理了Java中org.thymeleaf.Arguments.getTemplateRepository()
方法的一些代码示例,展示了Arguments.getTemplateRepository()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Arguments.getTemplateRepository()
方法的具体详情如下:
包路径:org.thymeleaf.Arguments
类名称:Arguments
方法名:getTemplateRepository
[英]Returns the template repository in use.
[中]返回正在使用的模板存储库。
代码示例来源:origin: org.everit.osgi.bundles/org.everit.osgi.bundles.org.thymeleaf.thymeleaf
@Override
protected List<Node> getMarkupSubstitutes(final Arguments arguments, final Element element) {
final String text = getText(arguments, element);
try {
final TemplateRepository templateRepository = arguments.getTemplateRepository();
final List<Node> fragNodes = templateRepository.getFragment(arguments, text);
for (final Node node : fragNodes) {
node.setProcessable(false);
}
return fragNodes;
} catch (final TemplateEngineException e) {
throw e;
} catch (final Exception e) {
throw new TemplateProcessingException(
"An error happened during parsing of unescaped text: \"" + element.getOriginalName() + "\"", e);
}
}
代码示例来源:origin: nz.net.ultraq.web.thymeleaf/thymeleaf-layout-dialect
null, PROCESSOR_NAME_FRAGMENT_FULL, true);
List<Node> includefragments = fragmentandtarget.extractFragment(arguments.getConfiguration(),
arguments.getContext(), arguments.getTemplateRepository());
代码示例来源:origin: nz.net.ultraq.web.thymeleaf/thymeleaf-layout-dialect
arguments.getConfiguration(), arguments, element.getAttributeValue(attributeName),
null, null, false);
Template decorator = arguments.getTemplateRepository().getTemplate(new TemplateProcessingParameters(
arguments.getConfiguration(), fragmentandtarget.getTemplateName(), arguments.getContext()));
Element decoratorhtmlelement = decorator.getDocument().getFirstElementChild();
代码示例来源:origin: org.everit.osgi.bundles/org.everit.osgi.bundles.org.thymeleaf.thymeleaf
fragment.extractFragment(arguments.getConfiguration(), arguments, arguments.getTemplateRepository());
内容来源于网络,如有侵权,请联系作者删除!