Package rife.render

Class EncodeUrl

java.lang.Object
rife.render.EncodeUrl
All Implemented Interfaces:
ValueRenderer

public class EncodeUrl extends Object implements ValueRenderer

URL-encodes a template value.

Usage:

   <!--v render:rife.render.EncodeUrl:valueId/-->
   {{v render:rife.render.EncodeUrl:valueId/}}
 
Since:
1.0
Author:
Erik C. Thauvin
See Also:
  • Constructor Details

    • EncodeUrl

      public EncodeUrl()
  • Method Details

    • render

      public String render(Template template, String valueId, String differentiator)
      Returns the template value encoded to URL.
      Specified by:
      render in interface ValueRenderer
      Parameters:
      template - the template that contains the value
      valueId - the id of the value
      differentiator - the differentiator to use
      Returns:
      the URL-encoded value