Module askama::filters [−][src]
Module for built-in filter functions
Contains all the built-in filter functions for use in templates. You can define your own filters; for more information, see the top-level crate documentation.
Constants
BUILT_IN_FILTERS |
Functions
e |
Alias for the |
escape |
Escapes |
format |
Formats arguments according to the specified format |
join |
Joins iterable into a string separated by provided argument |
json |
Serialize to JSON (requires |
linebreaks |
Replaces line breaks in plain text with appropriate HTML |
linebreaksbr |
Converts all newlines in a piece of plain text to HTML line breaks |
lower |
Converts to lowercase |
lowercase |
Alias for the |
safe |
Marks a string (or other |
trim |
Strip leading and trailing whitespace |
truncate |
Limit string length, appends '...' if truncated |
upper |
Converts to uppercase |
uppercase |
Alias for the |