update: add extends, block, super, filter_block, autoescape and spaceless

This commit is contained in:
Lucas F. 2026-01-03 18:25:09 -03:00
parent 261c02f59b
commit 0192ad0b64
3 changed files with 822 additions and 375 deletions

15
todo.md
View file

@ -7,7 +7,7 @@
- [ ] cycle
- [ ] debug
- [x] extends
- [ ] filter
- [x] filter
- [ ] firstof
- [x] for
- [x] if
@ -89,3 +89,16 @@
- [ ] wordwrap
- [ ] yesno
___
## Doing
- [x] filter — super útil (ex.: {{ var|upper }})
- [x] autoescape — segurança importante
- [x] spaceless — remove espaços em branco
- [ ] verbatim — como raw
- [ ] 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