widgets refactor

render widgets server side
widgets can use all the data the template can use
This commit is contained in:
Baris Usakli
2017-07-07 15:33:16 -04:00
parent 121a629de6
commit 9e94edb5aa
10 changed files with 132 additions and 129 deletions

View File

@@ -6,7 +6,7 @@ helpers.toMap = function (data) {
var map = {};
for (var i = 0; i < data.length; i += 1) {
map[data[i]._key] = data[i];
data[i]._key = undefined;
delete data[i]._key;
}
return map;
};