104 lines
1.7 KiB
Markdown
104 lines
1.7 KiB
Markdown
# Tags
|
|
|
|
- [ ] autoescape
|
|
- [x] block
|
|
- [x] comment
|
|
- [ ] csrf_token
|
|
- [ ] cycle
|
|
- [ ] debug
|
|
- [x] extends
|
|
- [x] filter
|
|
- [ ] firstof
|
|
- [x] for
|
|
- [x] if
|
|
- [x] ifchanged
|
|
- [x] include
|
|
- [ ] load
|
|
- [ ] lorem
|
|
- [x] now
|
|
- [ ] partial
|
|
- [ ] partialdef
|
|
- [ ] querystring
|
|
- [ ] regroup
|
|
- [ ] resetcycle
|
|
- [ ] spaceless
|
|
- [ ] templatetag
|
|
- [ ] url
|
|
- [ ] verbatim
|
|
- [ ] widthratio
|
|
- [x] with
|
|
|
|
|
|
# Filters
|
|
|
|
- [ ] add
|
|
- [ ] addslashes
|
|
- [ ] capfirst
|
|
- [ ] center
|
|
- [ ] cut
|
|
- [ ] date
|
|
- [ ] default
|
|
- [ ] default_if_none
|
|
- [ ] dictsort
|
|
- [ ] dictsortreversed
|
|
- [ ] divisibleby
|
|
- [ ] escape
|
|
- [ ] escapejs
|
|
- [ ] escapeseq
|
|
- [ ] filesizeformat
|
|
- [ ] first
|
|
- [ ] floatformat
|
|
- [ ] force_escape
|
|
- [ ] get_digit
|
|
- [ ] iriencode
|
|
- [ ] join
|
|
- [ ] json_script
|
|
- [ ] last
|
|
- [ ] length
|
|
- [ ] linebreaks
|
|
- [ ] linebreaksbr
|
|
- [ ] linenumbers
|
|
- [ ] ljust
|
|
- [ ] lower
|
|
- [ ] make_list
|
|
- [ ] phone2numeric
|
|
- [ ] pluralize
|
|
- [ ] pprint
|
|
- [ ] random
|
|
- [ ] rjust
|
|
- [ ] safe
|
|
- [ ] safeseq
|
|
- [ ] slice
|
|
- [ ] slugify
|
|
- [ ] stringformat
|
|
- [ ] striptags
|
|
- [ ] time
|
|
- [ ] timesince
|
|
- [ ] timeuntil
|
|
- [ ] title
|
|
- [ ] truncatechars
|
|
- [ ] truncatechars_html
|
|
- [ ] truncatewords
|
|
- [ ] truncatewords_html
|
|
- [ ] unordered_list
|
|
- [ ] upper
|
|
- [ ] urlencode
|
|
- [ ] urlize
|
|
- [ ] urlizetrunc
|
|
- [ ] wordcount
|
|
- [ ] wordwrap
|
|
- [ ] yesno
|
|
|
|
___
|
|
|
|
## Doing
|
|
|
|
- [x] filter — super útil (ex.: {{ var|upper }})
|
|
- [x] autoescape — segurança importante
|
|
- [x] spaceless — remove espaços em branco
|
|
- [x] verbatim — como raw
|
|
- [x] url — reverse de URLs (quando tiver routing)
|
|
- [ ] cycle — alternar valores em loop
|
|
- [ ] firstof — fallback de variáveis
|
|
- [ ] load — para custom tags/filters (futuro)
|
|
- [ ] csrf_token — quando tiver web
|