beno / slim-mustache

MIT License
4 stars 0 forks source link

Ignore content in mustaches. #3

Closed arxpoetica closed 7 years ago

arxpoetica commented 8 years ago

Take for example, the following, which is a valid mustache in Ractive.js: {{~/user.id}} The tilde within the mustache signifies root level. But your plugin parses the tilde giving {{{{/user.id}}}}. I'm sure there are other scenarios. Essentially, if there are already existing mustaches, it should ignore whatever is inside, since those are explicit.