Géry Debongnie
55ac43c1db
[IMP] app: add fast path for when component has no prop
2022-06-13 09:51:31 +02:00
Géry Debongnie
0e6059467f
[REF] move component function to app, improve some code
2022-06-13 09:51:31 +02:00
Géry Debongnie
1fc88f626f
[IMP] slots: add support for t-props on slots props
2022-06-07 09:30:45 +02:00
Géry Debongnie
2b4d8874c7
[REF] simplify template definition
2022-05-31 14:00:01 +02:00
Géry Debongnie
998ecbb337
[REF] compiler: introduce define helper, slightly refactor code
2022-03-08 12:24:57 +01:00
Géry Debongnie
3196b585fd
[FIX] slots: process slot params/values like normal props
2022-02-11 10:46:44 +01:00
Bruno Boi
bb6479f44f
[FIX] compiler: add _ prefix to local variables while compiling an expression
2022-02-11 10:46:44 +01:00
Géry Debongnie
92cc4375f8
[FIX] components: make sure t-ref work with t-if/t-else
2022-02-11 10:46:44 +01:00
Samuel Degueldre
9f2e2bcc66
[IMP] compiler: scope generated ids to their prefix
...
This means that unrelated ids (eg the id of a template, variable or key)
not longer share the same incrementing counter, meaning that you no
longer see a variable named "v2" unless another variable "v1" was
generated previously, this is also true for block data.
2022-02-11 10:46:44 +01:00
Géry Debongnie
c7af885f43
[IMP] compiler: improve generated compiled code
2022-02-11 10:46:44 +01:00
Géry Debongnie
7eaecac0b5
[REF] tests: improve test helpers
...
- remove snapshotApp
- remove addTemplates
- simplify helpers
- make sure snapshotted templates are snapshotted with the app config
2022-02-11 10:46:44 +01:00
Géry Debongnie
e91e50a812
[REF] compiler: simplify all compiled templates
2022-02-11 10:46:44 +01:00
Géry Debongnie
8a1ac13975
[IMP] add support for top level comments
2022-02-11 10:46:44 +01:00
Samuel Degueldre
7143dd3ff5
[FIX] components: capture context in prop expressions
2022-02-11 10:41:18 +01:00
Lucas Perais (lpe)
b902edc1be
[IMP] app, compiler: introduce t-out
...
t-out automatically escaped content when it is a string not marked
with the `markup` function
t-out renders the raw content if it is a Block, or if it has been marked
with the `markup` funtion.
t-esc has been kept since it is safe and is optimized to render text nodes.
all t-raw calls are in fact the same as t-out.
2022-02-11 10:41:18 +01:00
Géry Debongnie
1700a6fba3
[REF] compiler: rename qweb/ into compiler/
2022-02-11 10:41:18 +01:00