JSON

{variable|json}

Output the variable as JSON data.

Prettified JSON

{variable|json-pretty}

Output the variable as formatted JSON data.

Date/Time Formatters

Date

{addedOn|date %A, %B %d}

Format a date in-line using the YUI date format.

Timesince Date

{addedOn|timesince}

Displays the time/date in a term relative to right now. Also referred to as 'time ago' or 'twitter-style' date format.

String Formatters

Slugify

{variable|slugify}

Converts a human readable string variable to lowercase, removes non-word characters (alphanumerics and underscores) and converts spaces to hyphens. For example, "Test Example" would become "test-example".

Smartypants

{variable|smartypants}

Translates plain ASCII punctuation characters into “smart” typographic punctuation HTML entities (source).

URL Encode

{variable|url-encode}

Encode a variable so it can be safely used in a URL. For instance, "Test Example" would become "Test%20Example".

HTML

{variable|html}

Escape a string to ensure it is valid HTML.

HTML Tag

{variable|htmltag}

Escapes html tags and quotes (<, >, &, ")

HTML Attribute

{variable|htmlattr}

Escape a string to ensure it can be used in an attribute reference (src="X", for instance) within an HTML tag.

Twitter Links

{variable|activate-twitter-links}

Make links and @names link to the appropriate places on twitter. For instance, @squarespace (the string) would become @squarespace.

Safe

{variable|safe}

Make the variable 'safe' by stripping away unsafe HTML, such as injected script tags.

Item Count

{items|count}

Output the length of the items array