Package br.com.caelum.tubaina.template

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


    }
 
  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

    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

TOP

Related Classes of br.com.caelum.tubaina.template.FreemarkerProcessor

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.