Package org.stringtree.template

Examples of org.stringtree.template.Templater


      Object template = findTemplate(context);
    if (template != null) {
      if (content != null) {
        context = new FetcherStringFinder(new WrappedFetcher(content, underlying));
      }
      Templater templater = (Templater)context.getObject(Templater.TEMPLATER);
      autoTemplate(context, templater, collector, MojasefConstants.PROLOGUE_TEMPLATE);
      templater.expandTemplate(context, template, collector);
            autoTemplate(context, templater, collector, MojasefConstants.EPILOGUE_TEMPLATE);
    } else if (token == Token.CONTINUE && dfl != null) {
            delegateAndExpand(collector, context, dfl, null);
    } else {
      collector.write(content);
View Full Code Here


            source = this;
          }
            put(MojasefConstants.TEMPLATE_SOURCE, source);
        }

        Templater templater = new ContextTemplater();

        if (null != getObject(MojasefConstants.MOJASEF_OUTPUT_ESCAPER)) {
            ObjectToString converter = (ObjectToString)getObject(MojasefConstants.MOJASEF_OUTPUT_ESCAPER);
            templater.setStringConverter(converter);
        }

        put(Templater.TEMPLATE, new ContextTemplateFetcher(this));
        put(Templater.TEMPLATER, templater);
  }
View Full Code Here

TOP

Related Classes of org.stringtree.template.Templater

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.