-
Notifications
You must be signed in to change notification settings - Fork 21
Template Filters
Kyle J. Roux edited this page Sep 7, 2015
·
1 revision
There are a number of useful template filters you can use when using flask-xxl
- date -> formats datetime object to a yyyy-mm-dd string
- date_pretty -> formats datetime object to a Month dd, yyyy string
- datetime -> Formats datetime object to a mm-dd-yyyy hh:mm string
- pluralize(value, one='', many='s') -> Returns the plural suffix when needed
- month_name -> Return month name for a month number
- markdown -> Convert plain text to HTML , w/fenced code blocks and checkboxs, GFM
Jstacoder [email protected]
Examples