Package br.com.caelum.tubaina.template

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


    map.put("parser", parser);
    map.put("dirTree", dirTree);
    map.put("curdir", currentDir);
    map.put("sanitizer", new HtmlSanitizer());

    return new FreemarkerProcessor(cfg).process(map, "html/section.ftl");
  }
View Full Code Here


  public StringBuffer createIndex(final Map<String, Integer> indexes) {
    Map<String, Object> map = new HashMap<String, Object>();
    map.put("dirTree", dirTree);
    map.put("indexes", indexes);
    map.put("sanitizer", new HtmlSanitizer());
    return new FreemarkerProcessor(cfg).process(map, "html/index.ftl");
  }
View Full Code Here

    map.put("curdir", currentDir);
    map.put("parser", parser);
    map.put("dirTree", dirTree);
    map.put("sanitizer", new HtmlSanitizer());

    return new FreemarkerProcessor(cfg).process(map, "html/chapter.ftl");
  }
View Full Code Here

    map.put("chapters", b.getChapters());
    map.put("dirTree", dirTree);
    map.put("textbookVersion", new VersionGenerator().generate());
    map.put("sanitizer", new HtmlSanitizer());

    return new FreemarkerProcessor(cfg).process(map, "html/toc.ftl");
  }
View Full Code Here

    Map<String, Object> map = new HashMap<String, Object>();
    map.put("book", book);
    map.put("parser", parser);
    map.put("textbookVersion", new VersionGenerator().generate());

    FreemarkerProcessor processor = new FreemarkerProcessor(cfg);
    return processor.process(map, "latex/book.ftl");
  }
View Full Code Here

        return "";
      }
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("bibliography", bibliography);
        map.put("sanitizer", new HtmlSanitizer());
        return new FreemarkerProcessor(config).process(map, "bibliography.ftl").toString();
       
    }
View Full Code Here

        }
    map.put("book", book);
    map.put("parser", parser);
    map.put("textbookVersion", new VersionGenerator().generate());

    FreemarkerProcessor processor = new FreemarkerProcessor(cfg);
    return processor.process(map, "latex/book.ftl");
  }
View Full Code Here

      map.put("next", dirTree.get(currentDir + 1))
    } else {
      map.put("next", "");
    }
   
    return new FreemarkerProcessor(cfg).process(map, "section.ftl");
  }
View Full Code Here

    map.put("dirTree", dirTree);
    map.put("curdir", currentDir);
    map.put("sanitizer", new HtmlSanitizer());
    map.put("anchorlink", dirTree.get(currentDir).split("#")[1]);

    return new FreemarkerProcessor(cfg).process(map, "section-flat.ftl");
  }
View Full Code Here

  public StringBuffer generateSingleHtmlSection(Section s) {
    Map<String, Object> map = new HashMap<String, Object>();
    map.put("section", s);
    map.put("parser", parser);
    map.put("sanitizer", new HtmlSanitizer());
    return new FreemarkerProcessor(cfg).process(map, "section.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.