Skip to content

Commit

Permalink
Fixed rename replacersfor new templates #25
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rmat1k committed Apr 30, 2015
1 parent 22854da commit a6f494f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .bemy.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"deps_dom": {
"suffix": ".deps.js",
"shortcuts": [ "ddom", "deps_dom" ],
"shortcuts": [ "dd", "ddom", "deps_dom" ],
"template": "stub/depend/_dom/depend_dom.deps.js"
},
"bh": {
Expand All @@ -43,13 +43,13 @@
"js": {
"suffix": ".js",
"shortcuts": [ "j", "js" ],
"rename": "decl('{{bemNode}}",
"rename": [ "modules.define('{{bemNode}}", "@module {{bemNode}}", "@exports {{bemNode}}" ],
"template": [ "stub/script/script.js" ]
},
"js_dom": {
"suffix": ".js",
"shortcuts": [ "jdom", "js_dom" ],
"rename": "decl('{{bemNode}}",
"rename": [ "@module {{bemNode}}", "@class {{bemNode}}", "@lends {{bemNode}}", "@exports {{bemNode}}" ],
"template": [ "stub/script/_dom/script_dom.js" ]
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/f0rmat1k/bemy.git"
},
"version": "3.3.2",
"version": "3.4.0",
"keywords": [
"bem",
"BEM Tools"
Expand Down
2 changes: 1 addition & 1 deletion stub/template/template.bh.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = function (bh) {
bh.match('{{blockName}}{{elemName}}{{modName}}{{modVal}}', function (ctx) {
{{cursor}}ctx.tag('div');
ctx.tag({{cursor}});
});
};
2 changes: 1 addition & 1 deletion stub/template/template.priv.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = function (blocks) {
blocks.declare('{{blockName}}{{elemName}}{{modName}}{{modVal}}', function (data) {
return {
block: '{{blockName}}',
content: ''{{cursor}}
content: '{{cursor}}'
};
});
};

0 comments on commit a6f494f

Please sign in to comment.