Class ClientResourceUrlFunctionMethod

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

public final class ClientResourceUrlFunctionMethod extends Object implements freemarker.template.TemplateMethodModelEx
Author:
muzquiano Custom FreeMarker Template language method.

Render a client side javascript function to build resource urls to this service.

Usage: clientResourceUrlFunction(String funcName)

  • Constructor Details

    • ClientResourceUrlFunctionMethod

      public ClientResourceUrlFunctionMethod(WebScriptResponse res)
      Construct
  • 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)