Skip to content

rife2/rife2-template-renderers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Java bld GitHub release (latest by date) Release Maven Central Nexus Snapshot GitHub CI Tests

RIFE2 Template Renderers

This project provides a collection of useful template renderers.

Date/Time Renderers

Renderer Description
rife.render.BeatTime Renders the current time in Swatch Internet (.beat) Time format
rife.render.DateIso Renders the current date in ISO 8061 format
rife.render.DateTimeIso Renders the current date and time in ISO 8061 format
rife.render.DateTimeRfc2822 Renders the current date and time in RFC 2822 format
rife.render.TimeIso Renders the current time in ISO 8061 format
rife.render.Year Renders the current year

Encoding Renderers

Renderer Description
rife.render.EncodeBase64 Encodes a template value to Base64
rife.render.EncodeHtml Encodes a template value to HTML
rife.render.EncodeHtmlEntities Encodes a template value to HTML decimal entities
rife.render.EncodeJs Encodes a template value to JavaScript/ECMAScript
rife.render.EncodeJson Encodes a template value to JSON
rife.render.EncodeUnicode Encodes a template value to Unicode escape codes
rife.render.EncodeUrl URL-encodes a template value
rife.render.EncodeXml Encodes a template value to XML

Format Renderers

Renderer Description
rife.render.Abbreviate Abbreviates a template value
rife.render.formatCreditcard Formats a template credit card number value to the last 4 digits
rife.render.Mask Masks characters of a template value
rife.render.Normalize Normalizes a template value for inclusion in a URL path
rife.render.QrCode Generates an SVG QR Code from a template value
rife.render.ShortenUrl Shortens a template value URL
rife.render.Uptime Renders the server uptime in various customizable formats

Text Renderers

Renderer Description
rife.render.Capitalize Capitalizes a template value
rife.render.Lowercase Converts a template value to lowercase
rife.render.Rot13 Translates a template value to/from ROT13
rife.render.SwapCase Swap case of a template value
rife.render.Trim Removes leading and trailing whitespace from a template value
rife.render.Uncapitalize Uncapitalizes a template value
rife.render.Uppercase Converts a template value to uppercase

Documentation

Read more in the documenation.