Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update templates to support bem-xjst 2.x #1060

Merged
merged 1 commit into from
Jun 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
block('b1').def()(function() {
this.mods.foo = 'bar';
applyNext();
return applyNext();
});
block('b1').content()('foo bar');
block('b1').mod('foo', 'bar').content()('foo bar');
2 changes: 1 addition & 1 deletion common.blocks/page/page.bemhtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ block('page')(
var ctx = this.ctx;
this._nonceCsp = ctx.nonce;

applyCtx([
return applyCtx([
ctx.doctype || '<!DOCTYPE html>',
{
tag : 'html',
Expand Down
2 changes: 1 addition & 1 deletion touch.blocks/page/__icon/page__icon.bemhtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
block('page').elem('icon').def()(function() {
var ctx = this.ctx;
applyCtx([
return applyCtx([
ctx.src16 && {
elem : 'link',
attrs : { rel : 'shortcut icon', href : ctx.src16 }
Expand Down