Package org.rythmengine.template

Examples of org.rythmengine.template.ITemplate


        return scheduler.submit(new Callable<Object>() {
            @Override
            public Object call() throws Exception {
                try {
                    engine.prepare(userCtx);
                    ITemplate t = tmpl;
                    if (null != t) {
                    } else if (null != template) {
                        t = engine.getTemplate(template, args);
                    } else if (null != file) {
                        t = engine.getTemplate(file, args);
                    } else {
                        throw new NullPointerException();
                    }
                    return t.__setSecureCode(code).render();
                } catch (Exception e) {
                    return e;
                }
            }
        });
View Full Code Here


                   
                }
               
                for (final FileBasedTag fileBasedTag: configurator.getFileBasedTags()){
       
                    final ITemplate tag = new FileBasedTagProxy(
                            fileBasedTag, fileBasedTagTempDirectory, disableFileWrite);
   
                    LOGGER.debug("Register file based tag: [{}]", tag.__getName());
   
                    Rythm.engine().registerTemplate(tag);
       
                }
           
View Full Code Here

TOP

Related Classes of org.rythmengine.template.ITemplate

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.