Examples of FreemarkerProcessor


Examples of br.com.caelum.tubaina.template.FreemarkerProcessor

        }
        map.put("book", book);
        map.put("chapter", chapter);
        map.put("parser", parser);
        map.put("sanitizer", new HtmlSanitizer());
        return new FreemarkerProcessor(cfg).process(map, "chapter.ftl");
    }
View Full Code Here

Examples of br.com.caelum.tubaina.template.FreemarkerProcessor

    }
 
  private StringBuffer generateHeader(Book book) {
    Map<String, Object> map = new HashMap<String, Object>();
    map.put("booktitle", book.getName());
    return new FreemarkerProcessor(cfg).process(map, "book-header.ftl");
  }
View Full Code Here

Examples of br.com.caelum.tubaina.template.FreemarkerProcessor

    String chapterName = Utilities.toDirectoryName(null, chapter.getTitle());
    return new StringBuffer(chapterContent.toString().replace("$$RELATIVE$$", chapterName));
  }
 
  private StringBuffer generateFooter() {
    return new FreemarkerProcessor(cfg).process(new HashMap<String, Object>(), "book-footer.ftl");
  }
View Full Code Here

Examples of org.jbehave.core.reporters.FreemarkerProcessor

import org.jbehave.core.reporters.StoryReporterBuilder;

public class CustomHtmlOutput extends HtmlTemplateOutput {

    public CustomHtmlOutput(File file, Keywords keywords) {
        super(file, keywords, new FreemarkerProcessor(CustomHtmlOutput.class), "ftl/custom-html-output.ftl");
    }
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.