Skip to content

Instantly share code, notes, and snippets.

@miripiruni
Last active November 7, 2016 16:38
Show Gist options
  • Save miripiruni/627d5f5f4ce3d0c761eeb35a24e58ce2 to your computer and use it in GitHub Desktop.
Save miripiruni/627d5f5f4ce3d0c761eeb35a24e58ce2 to your computer and use it in GitHub Desktop.
var bemxjst = require('bem-xjst');
var bemtree = bemxjst.bemtree;
var templates_1 = bemtree.compile(function() {
// Здесь одни шаблоны
});
var templates_2 = bemtree.compile(function() {
// Здесь другие шаблоны
});
console.log(templates_1.apply({ block: 'page' }));
console.log(templates_2.apply({ block: 'page' }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment