machty / emblem.js

Emblem.js - Ember-friendly, indented syntax alternative for Handlebars.js
http://emblemjs.com
MIT License
1.04k stars 81 forks source link

Update use of modularized grammars #298

Open thec0keman opened 6 years ago

thec0keman commented 6 years ago

PegJS is working on support for modularized grammars. Once this is finalized and released, it would be good to update emblem to take advantage of this (over against use of pegjs-import).

There are a couple of issues with our current structure:

  1. modules are copied when imported, so emblem's size grows as you reuse a module
  2. circular dependencies do not work, which has resulted in some less than intuitive module structure. (In general, it forces pushing shared code higher in the chain).

Tracking issue.