Package play.templates

Examples of play.templates.Template.render()


      Options options = doc.options;
      if(options == null)
        return;
      if(!StringUtils.isEmpty(options.HEADER_TEMPLATE)){
        Template template = TemplateLoader.load(options.HEADER_TEMPLATE);
        options.HEADER = template.render(new HashMap<String, Object>(args));
      }
      if(!StringUtils.isEmpty(options.FOOTER_TEMPLATE)){
        Template template = TemplateLoader.load(options.FOOTER_TEMPLATE);
        options.FOOTER = template.render(new HashMap<String, Object>(args));
      }
View Full Code Here


        Template template = TemplateLoader.load(options.HEADER_TEMPLATE);
        options.HEADER = template.render(new HashMap<String, Object>(args));
      }
      if(!StringUtils.isEmpty(options.FOOTER_TEMPLATE)){
        Template template = TemplateLoader.load(options.FOOTER_TEMPLATE);
        options.FOOTER = template.render(new HashMap<String, Object>(args));
      }
        if (!StringUtils.isEmpty(options.HEADER))
            doc.headerFooterList.add(new IHtmlToPdfTransformer.CHeaderFooter(options.HEADER, IHtmlToPdfTransformer.CHeaderFooter.HEADER));
        if (!StringUtils.isEmpty(options.ALL_PAGES))
          doc.headerFooterList.add(new IHtmlToPdfTransformer.CHeaderFooter(options.ALL_PAGES, IHtmlToPdfTransformer.CHeaderFooter.ALL_PAGES));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.