Package com.gentics.cr.template

Examples of com.gentics.cr.template.StringTemplate


      // we use the source attribute as template ...
    } else {
      if (template != null) {
        logger.debug("Using template configured using var: " + TRANSFORMER_TEMPLATE_KEY + ".");
        try {
          tpl = new StringTemplate(template);
        } catch (CRException e) {
          e.printStackTrace();
        }
      } else if (templatePath != null) {
        logger.debug("Using template: " + templatePath);
View Full Code Here


      vtm.put(entry.getKey(), entry.getValue());
    }
    ITemplate tmpl = tpl;
    try {
      if (sourceAttribute != null) {
        tmpl = new StringTemplate(bean.getString(sourceAttribute));
      }
      String output = vtm.render(tmpl.getKey(), tmpl.getSource());
      if (output != null && targetAttribute != null) {
        if (appendToTargetAttribute) {
          Object target = bean.get(targetAttribute);
View Full Code Here

TOP

Related Classes of com.gentics.cr.template.StringTemplate

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.