Examples of render()


Examples of info.bliki.wiki.addon.trac.TracModel.render()

  /**
   * simple example
   */
  public static void main(String[] args) {
    TracModel wikiModel = new TracTestModel("http://www.bliki.info/wiki/${image}", "http://www.bliki.info/wiki/${title}");
    String htmlStr = wikiModel.render("This is a simple [[Hello World]] wiki tag");
    System.out.print(htmlStr);
  }
}
View Full Code Here

Examples of info.bliki.wiki.filter.WikiTestModel.render()

    return new TestSuite(BigDocbookTest.class);
  }

  public void testDocbook() {
    WikiModel myWikiModel = new WikiTestModel("file:///c:/temp/${image}", "file:///c:/temp/${title}");
    String renderedXHTML = myWikiModel.render(TEST1);
    DocbookGenerator gen = new DocbookGenerator();
    try {
      String output = gen.create(renderedXHTML, DocbookGenerator.HEADER_TEMPLATE, DocbookGenerator.FOOTER, "Big Docbook Test");
      System.out.println(output);
    } catch (Exception e) {
View Full Code Here

Examples of info.bliki.wiki.model.PDFWikiModel.render()

  }

  public void testPDF() {
    // WikiModel myWikiModel = new WikiTestModel("images/${image}", "file:///c:/temp/${title}");
    PDFWikiModel myWikiModel = new PDFWikiModel("images/${image}", "file:///c:/temp/${title}");
    String renderedXHTML = myWikiModel.render(TEST1);
     System.out.println(renderedXHTML);
    File baseDirectory = new File("c:\\temp");
    try {
      URL url = baseDirectory.toURI().toURL();
      PDFGenerator gen = new PDFGenerator(url);
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.render()

      throw new IllegalArgumentException("missing argument inpit");

    WikiModel wikiModel = getWikiModel(titleBaseUrl);
    try {
      wikiModel.setUp();
      return wikiModel.render(input);
    } finally {
      wikiModel.tearDown();
    }

  }
View Full Code Here

Examples of info.bliki.wiki.test.filter.WikiTestModel.render()

    return new TestSuite(BigDocbookTest.class);
  }

  public void testDocbook() {
    WikiModel myWikiModel = new WikiTestModel("file:///c:/temp/${image}", "file:///c:/temp/${title}");
    String renderedXHTML = myWikiModel.render(TEST1);
    DocbookGenerator gen = new DocbookGenerator();
    try {
      String output = gen.create(renderedXHTML, DocbookGenerator.HEADER_TEMPLATE, DocbookGenerator.FOOTER, "Big Docbook Test");
      System.out.println(output);
    } catch (Exception e) {
View Full Code Here

Examples of it.eng.spago.presentation.rendering.RenderIFace.render()

              // Setup phase
              renderer.prepareRender(requestContext, publisherConfig, getServletContext());
             
              // Render phase
              renderer.render(requestContext, publisherConfig, getServletContext());
            } finally {
              // Allow better garbage collection
              publisherConfig.release();
            }
View Full Code Here

Examples of japidviews.templates.AllPost.render()

      // System.out.println("run templating: " + i);
      // StringWriter out = new StringWriter(1000);
      // PrintWriter printWriter = new PrintWriter(out);
      te = new AllPost(new StringBuilder(1000));
      t = System.currentTimeMillis();
      te.render("抬头", posts);
      System.out.println(System.currentTimeMillis() - t);
      // System.out.println(out.toString());
      // Thread.sleep(5);
    }
    System.out.println("total time: " + (System.currentTimeMillis() - tt));
View Full Code Here

Examples of japidviews.templates.EachCall.render()

    int in = 0;
    int c = 0;
    while ('q' != in) {
      for (c = 0; c < 50000; c++) {
        EachCall call = new EachCall();
        String string = call.render(ps).getContent().toString();
        baos.write(c + string.length());
      }
      System.out.println("ready:");
      in = System.in.read();
      System.out.println("got: " + (char)in);
View Full Code Here

Examples of japidviews.templates.Posts.render()

    final List<Post> posts = createPosts();
    // execute the template
    long tt = System.currentTimeMillis();
    ByteArrayOutputStream baos = new ByteArrayOutputStream(10000);
    Posts te = new Posts();
    te.render("抬头", posts);
    te = new Posts();
    te.render("抬头", posts);
    te = new Posts();
    te.render("抬头", posts);
    baos.write(te.toString().getBytes("UTF-8"));
View Full Code Here

Examples of javango.forms.widgets.PercentInputWidget.render()

 
  public void testHtml0() throws Exception {
    PercentInputWidget w = injector.getInstance(PercentInputWidget.class);
    w.setDecimalPlaces(0);
    Double value = 0.0;
    String output = w.render("field", value, new LinkedHashMap<String, Object>());
    String html = "<input type=\"text\" name=\"field\" value=\"0\" />";
    assertEquals(html, output);
   
    assertEquals("0", w.asText(value));   
  }
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.