Package rife.render

Class EncodeUnicode

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

public class EncodeUnicode extends Object implements ValueRenderer

Encodes a template value to Unicode escape codes.

Usage:

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

    • EncodeUnicode

      public EncodeUnicode()
  • Method Details

    • render

      public String render(Template template, String valueId, String differentiator)
      Returns the template value encoded to Unicode escape codes.
      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 Unicode escape codes-encoded value