Package org.thymeleaf

Examples of org.thymeleaf.Template


        }

        final TemplateProcessingParameters fragmentTemplateProcessingParameters =
                new TemplateProcessingParameters(configuration, targetTemplateName, context);
       
        final Template parsedFragmentTemplate =
                templateRepository.getTemplate(fragmentTemplateProcessingParameters);
       
        final List<Node> nodes =
                this.fragmentSpec.extractFragment(configuration, parsedFragmentTemplate.getDocument().getChildren());

        /*
         * CHECK RETURNED NODES: if there is only one node, check whether it contains a fragment signature (normally,
         * a "th:fragment" attribute). If so, let the signature process the parameters before being applied. If no
         * signature is found, then just apply the parameters to every returning node.
View Full Code Here


    // Locate the decorator page
    StandardFragment fragment = StandardFragmentProcessor.computeStandardFragmentSpec(
        arguments.getConfiguration(), arguments, element.getAttributeValue(attributeName),
        DIALECT_PREFIX_LAYOUT, PROCESSOR_NAME_FRAGMENT);
    Template decoratortemplate = arguments.getTemplateRepository().getTemplate(new TemplateProcessingParameters(
        arguments.getConfiguration(), fragment.getTemplateName(), arguments.getContext()));
    element.removeAttribute(attributeName);

    Document decoratordocument = decoratortemplate.getDocument();
    Element decoratorrootelement = decoratordocument.getFirstElementChild();

    // Gather all fragment parts from this page
    Map<String,Object> fragments = findFragments(document.getElementChildren());
View Full Code Here

TOP

Related Classes of org.thymeleaf.Template

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.