bem-bl-xjst
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -42,3 +42,15 @@ var ometajs = require('ometajs'), | ||
: | ||
xjst.compile(xjstTree, { engine: 'sort-group' }); | ||
xjst.compile(xjstTree, { | ||
engine: 'sort-group', | ||
scoreFilter: function(pred) { | ||
if (pred[0] !== 'getp') | ||
return 0; | ||
if (pred[1][0] !== 'string' || pred[1][1] !== '_mode') | ||
return 0; | ||
if (pred[2][0] !== 'get' || pred[2][1] !== '__$ctx') | ||
return 0; | ||
return Infinity; | ||
} | ||
}); | ||
} catch (e) { | ||
@@ -45,0 +57,0 @@ throw new Error("xjst to js compilation failed:\n" + e.stack); |
{ | ||
"name": "bem-bl-xjst", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "xjst compiler for bem-bl", | ||
"main": "lib/bemhtml.js", | ||
"dependencies": { | ||
"xjst": "~0.5.1", | ||
"xjst": "~0.5.21", | ||
"ometajs": "~3.3.5" | ||
@@ -9,0 +9,0 @@ }, |
34378
129
Updatedxjst@~0.5.21