Examples of TubainaHtmlIO


Examples of br.com.caelum.tubaina.io.TubainaHtmlIO

    }

    public void generate(Book book, File directory) throws IOException {

        ResourceManipulatorFactory htmlResourceManipulatorFactory = new HtmlResourceManipulatorFactory();
        TubainaHtmlDir bookRoot = new TubainaHtmlIO(templateDir, htmlResourceManipulatorFactory)
                .createTubainaDir(directory, book);
        List<String> dirTree = createDirTree(book, directory);
        StringBuffer toc = new BookToTOC().generateTOC(book, cfg, dirTree, parser);
        bookRoot.writeIndex(fixPaths(toc));
View Full Code Here

Examples of br.com.caelum.tubaina.io.TubainaHtmlIO

   
    bookContent.append(new SingleHtmlTOCGenerator(book, cfg).generateTOC());
   
    ResourceManipulatorFactory htmlResourceManipulatorFactory = new HtmlResourceManipulatorFactory();
   
    TubainaHtmlDir bookRoot = new TubainaHtmlIO(templateDir, htmlResourceManipulatorFactory).createTubainaDir(outputDir, book);

    for (Chapter c : book.getChapters()) {
      StringBuffer chapterContent = generateChapter(book, c);
      bookContent.append(chapterContent);
      if (!c.getResources().isEmpty()) {
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.