| 645 | | Template filters which expect strings |
|---|
| 646 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 647 | | |
|---|
| 648 | | If you're writing a template filter which only expects a string as the first |
|---|
| 649 | | argument, you should use the included decorator ``stringfilter``. This will |
|---|
| 650 | | convert an object to it's string value before being passed to your function:: |
|---|
| | 645 | Template filters that expect strings |
|---|
| | 646 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| | 647 | |
|---|
| | 648 | If you're writing a template filter that only expects a string as the first |
|---|
| | 649 | argument, you should use the decorator ``stringfilter``. This will |
|---|
| | 650 | convert an object to its string value before being passed to your function:: |
|---|