Package com.gentics.cr.template

Examples of com.gentics.cr.template.ITemplate


    vtm.put("properties", parameters);
    for (Iterator<Entry<String, Object>> i = additionalAttributes.entrySet().iterator(); i.hasNext();) {
      Entry<String, Object> entry = i.next();
      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);
          if (target != null && target instanceof String) {
            String mergedString = target.toString() + output;
View Full Code Here

TOP

Related Classes of com.gentics.cr.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.