Commit Graph

22 Commits

Author SHA1 Message Date
Géry Debongnie 9dd8a36b28 [REF] examples: improve todoapp 2019-04-16 10:09:24 +02:00
Géry Debongnie 7b87470760 [IMP] store: connect function takes hash function in param
With this commit, we can now decides precisely if a component should be
rerendered, by using a hash function.

By default, the hash function will deep observe each store element
coming from the result of the mapStateToProps.

closes #24
2019-04-15 10:43:35 +02:00
Géry Debongnie 3733734ae5 [REF] component: rename t-keep-alive to t-keepalive
This is useful to preserve the following nice property: when we have an
attribute t-something-someotherthing, we can get the directive name by
removing 't-' at the front, and splitting on '-'.
2019-04-14 10:44:29 +02:00
Géry Debongnie bba9e5fb20 [FIX] examples: update store example 2019-04-12 13:10:23 +02:00
Géry Debongnie 370a92b67e imp: t-ref directive is now dynamic
closes #11
2019-04-09 10:33:08 +02:00
Géry Debongnie cb2e76498b fix: update build scripts: core.js -> owl.js 2019-03-28 10:57:12 +01:00
Géry Debongnie 80e2124cbf imp: rename library into owl 2019-03-27 15:26:20 +01:00
Géry Debongnie e53287b52e ref: reorganize exports into core/extras 2019-03-27 15:18:25 +01:00
Géry Debongnie a7d2edd0c9 imp: qweb compiler now condenses whitespaces
This is a pretty big breaking change: the html output by qweb is now
different.

The main goal is to optimize the compiled templates:
- condense all consecutive whitespaces into a single spaces
- if possible, drop completely some text nodes, based on the following
  heuristic: if a text node is only composed of whitespaces, and
contains at least one linebreak, then it can be dropped.

This leads in my benchmark test to an improvement of about 10%, in
rendering speed and in memory consuption.

Note: whitespace here means anything that matches the \s regexp: newlines,
tabs, ...

close #8
2019-03-22 12:04:50 +01:00
Géry Debongnie d48cb5aae4 imp: work on store, refactor, improve todoapp 2019-03-22 10:47:59 +01:00
Géry Debongnie add380f59b ref: move PureWidget back to core, use updateEnv 2019-03-21 16:33:08 +01:00
Géry Debongnie a34fc39100 imp: allow object descriptors for attributes
close #6
2019-03-21 11:15:06 +01:00
Géry Debongnie 71c1469124 update examples doc 2019-03-21 10:23:44 +01:00
Géry Debongnie c32f1d1e38 complete base implementation of todoapp 2019-03-20 15:17:53 +01:00
Géry Debongnie 5da7df8bf0 add todoapp 2019-03-20 11:49:45 +01:00
Géry Debongnie 6a2e4dbf2f rename demo example into benchmarks 2019-03-19 13:55:27 +01:00
Géry Debongnie 695636e60e cleanup, rename setState into updateState 2019-03-19 10:35:41 +01:00
Géry Debongnie 1f602512a5 improve demo app 2019-03-18 16:15:08 +01:00
Géry Debongnie cf289323c8 add demo application (benchmark) 2019-03-18 14:26:33 +01:00
Géry Debongnie 050025a922 update documentation 2019-03-17 15:44:02 +01:00
Géry Debongnie 9e608dae49 update documentation 2019-03-17 08:57:18 +01:00
Géry Debongnie 46aedf78af move demo code to examples/ 2019-03-15 12:21:55 +01:00