Class ScriptUrlMethod

java.lang.Object
org.springframework.extensions.webscripts.ScriptUrlMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public final class ScriptUrlMethod extends Object implements freemarker.template.TemplateMethodModelEx
Custom FreeMarker Template language method.

Render script url independent of script hosting environment e.g. render inside / outside portal.

Usage: scripturl(String url)

Author:
davidc
  • Constructor Details

  • Method Details

    • exec

      public Object exec(List args) throws freemarker.template.TemplateModelException
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException
      See Also:
      • TemplateMethodModel.exec(java.util.List)