update: csrf_token and lorem
This commit is contained in:
parent
bbab647430
commit
b09da93f0d
3 changed files with 175 additions and 3 deletions
35
todo.md
35
todo.md
|
|
@ -3,7 +3,7 @@
|
|||
- [x] autoescape
|
||||
- [x] block
|
||||
- [x] comment
|
||||
- [ ] csrf_token
|
||||
- [x] csrf_token
|
||||
- [x] cycle
|
||||
- [ ] debug
|
||||
- [x] extends
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
- [x] ifchanged
|
||||
- [x] include
|
||||
- [x] load
|
||||
- [ ] lorem
|
||||
- [x] lorem
|
||||
- [x] now
|
||||
- [ ] partial
|
||||
- [ ] partialdef
|
||||
|
|
@ -101,4 +101,33 @@ ___
|
|||
- [x] cycle — alternar valores em loop
|
||||
- [x] firstof — fallback de variáveis
|
||||
- [x] load — para custom tags/filters (futuro)
|
||||
- [ ] csrf_token — quando tiver web
|
||||
- [x] csrf_token — quando tiver web
|
||||
|
||||
---
|
||||
|
||||
## To do
|
||||
|
||||
1 - Finalizar o parser — completar as tags que faltam da lista:
|
||||
- [ ] debug
|
||||
- [x] lorem
|
||||
- [ ] partial / partialdef
|
||||
- [ ] querystring
|
||||
- [ ] regroup
|
||||
- [ ] resetcycle
|
||||
- [ ] templatetag
|
||||
- [ ] widthratio
|
||||
|
||||
2 - projetar o Context com calma:
|
||||
- Estrutura hierárquica (escopos aninhados para with, for, etc.)
|
||||
- Suporte a variáveis, listas, structs (models)
|
||||
- Acesso por ponto (obj.atributo, lista.0, etc.)
|
||||
- Fallback silencioso ou erro (como no Django)
|
||||
|
||||
3 - Renderer — com:
|
||||
- Resolução de variáveis
|
||||
- Aplicação de filtros
|
||||
- Herança com block.super
|
||||
- Loops com forloop
|
||||
- Tudo testado
|
||||
|
||||
4 -Filtros
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue