public TemplateModel get(String key) { return ((Configuration) configurable).getSharedVariable(key); } };
public TemplateModel get(String key) throws TemplateModelException { TemplateModel value = rootDataModel.get(key); return value != null ? value : configuration.getSharedVariable(key); } };
public TemplateModel get(String key) throws TemplateModelException { TemplateModel value = rootDataModel.get(key); return value != null ? value : configuration.getSharedVariable(key); }
public TemplateModel get(String key) throws TemplateModelException { TemplateModel result = globalNamespace.get(key); if (result == null) { result = rootDataModel.get(key); } if (result == null) { result = configuration.getSharedVariable(key); } return result; } };
TemplateTransformModel getTransform(Expression exp) throws TemplateException { TemplateTransformModel ttm = null; TemplateModel tm = exp.eval(this); if (tm instanceof TemplateTransformModel) { ttm = (TemplateTransformModel) tm; } else if (exp instanceof Identifier) { tm = configuration.getSharedVariable(exp.toString()); if (tm instanceof TemplateTransformModel) { ttm = (TemplateTransformModel) tm; } } return ttm; }
/** * Returns the globally visible variable of the given name (or null). This is correspondent to FTL * <code>.globals.<i>name</i></code>. This will first look at variables that were assigned globally via: <#global * ...> and then at the data model exposed to the template. */ public TemplateModel getGlobalVariable(String name) throws TemplateModelException { TemplateModel result = globalNamespace.get(name); if (result == null) { result = rootDataModel.get(name); } if (result == null) { result = configuration.getSharedVariable(name); } return result; }
/** * Returns an instance of {@link FreeMarkerTag}. Use this method * to further configure specific tags. * * @param tagName name of tag as used in a template * @return instance of registered tag */ public FreeMarkerTag getTag(String tagName){ return (FreeMarkerTag) config.getSharedVariable(tagName); } }
public TemplateModel get(String key) { return ((Configuration)configurable).getSharedVariable(key); } };
/** * Returns an instance of {@link FreeMarkerTag}. Use this method * to further configure specific tags. * * @param tagName name of tag as used in a template * @return instance of registered tag */ public FreeMarkerTag getTag(String tagName){ return (FreeMarkerTag) configuration.getSharedVariable(tagName); }
public TemplateModel get(String key) { return ((Configuration) configurable).getSharedVariable(key); } };
public TemplateModel get(String key) { return ((Configuration) configurable).getSharedVariable(key); } };
public TemplateModel get(String key) throws TemplateModelException { TemplateModel value = rootDataModel.get(key); return value != null ? value : configuration.getSharedVariable(key); } };
public TemplateModel get(String key) throws TemplateModelException { TemplateModel value = rootDataModel.get(key); return value != null ? value : configuration.getSharedVariable(key); } };
@Override public TemplateModel getSharedVariable(String name) { final TemplateModel value = super.getSharedVariable(name); if (value == null) { return freemarkerConfig.getSharedVariables().get(name); } return value; } };
@Override public TemplateModel getSharedVariable(String name) { Map<String, TemplateModel> vars = getRequestInfo().getSharedVariables(); if (vars.containsKey(name)) { return vars.get(name); } else { return super.getSharedVariable(name); } }
public TemplateModel get(String key) throws TemplateModelException { TemplateModel value = rootDataModel.get(key); if (value == null) { value = getConfiguration().getSharedVariable(key); } return value; } };
public TemplateModel get(String key) throws TemplateModelException { TemplateModel result = globalNamespace.get(key); if (result == null) { result = rootDataModel.get(key); } if (result == null) { result = configuration.getSharedVariable(key); } return result; } };
public TemplateModel get(String key) throws TemplateModelException { TemplateModel result = globalNamespace.get(key); if (result == null) { result = rootDataModel.get(key); } if (result == null) { result = configuration.getSharedVariable(key); } return result; } };
TemplateTransformModel getTransform(Expression exp) throws TemplateException { TemplateTransformModel ttm = null; TemplateModel tm = exp.eval(this); if (tm instanceof TemplateTransformModel) { ttm = (TemplateTransformModel) tm; } else if (exp instanceof Identifier) { tm = configuration.getSharedVariable(exp.toString()); if (tm instanceof TemplateTransformModel) { ttm = (TemplateTransformModel) tm; } } return ttm; }
public TemplateModel get(String key) throws TemplateModelException { TemplateModel result = globalNamespace.get(key); if (result == null) { result = rootDataModel.get(key); } if (result == null) { result = getConfiguration().getSharedVariable(key); } return result; } };