10 Replies Latest reply on Mar 30, 2004 9:21 AM by Viet

    Get templates from repository???

    Maarten Volders Newbie

      I can use templates on my modules using html files on my disc, but is it possible to get html files from the repository to use as templates???

      Now i just do:
      Document doc = repository.loadTemplate("/template.html");

      repository.addTemplate("main", (org.dom4j.Element) doc.selectSingleNode("/node/loop[@name='main']/node"));

      main = repository.createTemplate("main");
      DelegateContext ctx = new DelegateContext();
      main.render(ctx, page.getBodyWriter());

      So, is it possible to get the html template from the database repository?????

      HELP :)