Skip to content

Commit

Permalink
Adds info that filters only accept one argument
Browse files Browse the repository at this point in the history
  • Loading branch information
botic committed Oct 5, 2015
1 parent 131c6b7 commit 7269dbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Built-in template filters
==================================

This document describes Reinhardt's built-in template filters.
A filter is a simple function that accepts a value, an optional argument, and returns an output.

**List of built in filters**

Expand Down
4 changes: 3 additions & 1 deletion docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ bio|truncatewords:30 }}``. This will display the first 30 words of the ``bio``
variable.

Filter arguments that contain spaces must be quoted; for example, to join a
list with commas and spaced you'd use ``{{ list|join:", " }}``.
list with commas and spaced you'd use ``{{ list|join:", " }}``. It's not possible
to pass multiple arguments to a filter. If you need multiple arguments, provide
the logic in a custom tag or pass them as a single comma-separated string.

Reinhardt provides about thirty built-in template filters. You can read all about
them in the [built-in filter reference](filters.md). To give you a taste of what's
Expand Down

0 comments on commit 7269dbe

Please sign in to comment.