Package juzu.impl.template.spi

Examples of juzu.impl.template.spi.SimpleProcessContext


    Name fqn = pkg.append(name);
    Path.Absolute absolute = Path.absolute(fqn, ".gtmpl");
    Path.Relative relative = Path.relative(name, ".gtmpl");
    GroovyTemplateEmitter generator = new GroovyTemplateEmitter(fqn);
    try {
      ProcessPhase processPhase = new ProcessPhase(new SimpleProcessContext(Collections.<Path.Absolute, TemplateModel<?>>emptyMap()) {
        @Override
        public Path.Absolute resolveTemplate(Path path) throws TemplateException {
          return null;
        }
        @Override
View Full Code Here


      0);

    //
    HashMap<Path.Absolute, TemplateModel<?>> templates = new HashMap<Path.Absolute, TemplateModel<?>>();
    templates.put((Path.Absolute)Path.parse("/foo.gtmpl"), foo);
    ProcessPhase process = new ProcessPhase(new SimpleProcessContext(templates) {
      @Override
      public Path.Absolute resolveTemplate(Path path) {
        if (path.getCanonical().equals("index.gtmpl")) {
          return (Path.Absolute)Path.parse("/plugin/template/tag/decorate/templates/index.gtmpl");
        }
View Full Code Here

TOP

Related Classes of juzu.impl.template.spi.SimpleProcessContext

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.