Core
These are the core filters available throughout your templates.
Reverse (reverse)
Example:
{{ 'My Name Is Nate' | reverse }}
This code would produce etaN sI emaN yM
You could use this in the context of any variables like:
Example:
{{ blog.title | reverse }}
Escape HTML (escape_html)
You could use this in the context of any variables like:
Example:
{{ entry.body | escape_html }}
This will escape the HTML in the body of the entry.
Auto Link (link_to)
You could use this in the context of any variables like:
Example:
{{ entry.title | link_to: entry.url }}
This will create: <a href="/link-to-entry">Entry Title</a>.
Auto Breadcrumb (to_linked_breadcrumbs)
You could use this in the context of any variables like:
Example:
{{ entry | to_linked_breadcrumbs: '→', request }}
This will create a linked breadcrumb trail based on the hierarchy of the database. The first parameter is the separator used between the linked words. The second parameter is the optional request variable that you can pass to build the breadcrumbs from the URL path. The request variable is available to you on all requests.
Auto Sentence (to_linked_sentence)
You could use this in the context of any variables like:
Example:
{{ entry.tags | to_linked_sentence }}
This will create a linked sentence of the tags: fun, events, pictures, and cars. This can be used within any module as the tags being passed in have their proper URL attached to them.