Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epitome.Template should support escaping #8

Closed
sindresorhus opened this issue Jan 12, 2013 · 1 comment
Closed

Epitome.Template should support escaping #8

sindresorhus opened this issue Jan 12, 2013 · 1 comment
Assignees
Milestone

Comments

@sindresorhus
Copy link

In Underscore it's done with dash <%- str %>

For ease you can get the latest build of the templating from Lodash (which is a compatible fork of Underscore) using their awesome build script.

From the author:

You can create a custom Lo-Dash build that's just _.template via lodash include=template:
http://lodash.com/#custom-builds

@DimitarChristoff
Copy link
Member

no, Epitome has no external dependencies outside of mootools - lodash, underscore or otherwise, a custom build gets a bunch of stuff and it won't work anyway as it needs to be moved to the context of a mootools class.

The port of the current templating engine in underscore is a smaller task - already works in a branch but breaks this assertion https://github.com/DimitarChristoff/Epitome/blob/master/test/tests/epitome-template-test.js#L36 - expecting references in templates that are not in the object not to throw.

I will fix it tonight and update the tests,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants