enb/enb-bemxjst

Support `*.js` suffix

Closed this issue · 0 comments

blond commented

The libraries may be two sets of templates:

old syntax

  • i-bem.bemhtml — base templates in xjst
  • block.bemhtml — source template in old syntax

JS syntax

  • i-bem.bemhtml.js — base templates in bem-xjst
  • block.bemhtml.js — source template in JS syntax

Import: templates with bemhtml suffix should be used only if templates with bemhtml.js suffix are missing for its BEM-entity (block, elem or mod).