templateEngine.getConfiguration(), tilesDialectPrefix, TilesFragmentAttrProcessor.ATTR_NAME);
templateEngine.getConfiguration(), tilesDialectPrefix, TilesFragmentAttrProcessor.ATTR_NAME);
new DialectAwareProcessingContext( (IContext)contextObject, templateEngine.getConfiguration().getDialects().values()));
new DialectAwareProcessingContext( (IContext)contextObject, templateEngine.getConfiguration().getDialects().values()));
@Override protected void init(App app) { engine = new TemplateEngine(); engine.setTemplateResolvers(prepareResolvers()); configuration = engine.getConfiguration(); suffix = app.config().get("view.thymeleaf.suffix"); if (null == suffix) { suffix = ".thymeleaf"; } else { suffix = suffix.startsWith(".") ? suffix : S.concat(".", suffix); } initStringResourceEngine(); }
private static TilesFragment computeTemplateSelector(final TemplateEngine templateEngine, final IProcessingContext processingContext, final String templateSelector) { if (!templateEngine.isInitialized()) { templateEngine.initialize(); } if (!isStandardDialectPresent(templateEngine)) { return computeNonStandardFragment(templateEngine, templateSelector); } final Configuration configuration = templateEngine.getConfiguration(); final String tilesDialectPrefix = getTilesDialectPrefix(templateEngine); final StandardFragment standardFragment = StandardFragmentProcessor.computeStandardFragmentSpec(configuration, processingContext, templateSelector, tilesDialectPrefix, TilesFragmentAttrProcessor.ATTR_NAME); return new TilesFragment(standardFragment); }
private static TilesFragment computeTemplateSelector(final TemplateEngine templateEngine, final IProcessingContext processingContext, final String templateSelector) { if (!templateEngine.isInitialized()) { templateEngine.initialize(); } if (!isStandardDialectPresent(templateEngine)) { return computeNonStandardFragment(templateEngine, templateSelector); } final Configuration configuration = templateEngine.getConfiguration(); final String tilesDialectPrefix = getTilesDialectPrefix(templateEngine); final StandardFragment standardFragment = StandardFragmentProcessor.computeStandardFragmentSpec(configuration, processingContext, templateSelector, tilesDialectPrefix, TilesFragmentAttrProcessor.ATTR_NAME); return new TilesFragment(standardFragment); }
new TemplateProcessingParameters(templateEngine.getConfiguration(), templateName, new Context());