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

Mustache parser should not need to be copy-pasta'd #208

Closed mixonic closed 9 years ago

mixonic commented 9 years ago

0.5.0 introduces a new mustache parser:

https://github.com/machty/emblem.js/blob/0.5.0-beta/lib/mustache-parser.pegjs

This file is currently copy-pasted into the main parser. It should be imported.

PEG doesn't support an import syntax, but this plugin seems promising:

https://github.com/casetext/pegjs-import

mixonic commented 9 years ago

Fixed in https://github.com/machty/emblem.js/commit/59e9f59d9721d5545920a4eecd5a381958d047e6