Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

<%- %> Should mean DON'T escape HTML and <%= %> should mean escape HTML. #22

Open
billmei opened this issue Nov 19, 2015 · 1 comment
Open

Comments

@billmei
Copy link

billmei commented Nov 19, 2015

This library has opposite conventions from what other libraries expect, such as the official NPM version: https://www.npmjs.com/package/ejs . This is also the convention used in Ruby's native erb templates.

Per the Principle of Least Surprise this library should follow the conventions of the more popular libraries that already exist.

@billmei
Copy link
Author

billmei commented Nov 19, 2015

People who use Google to look this up will also see several responses on Stack Overflow which mention that <%= %> is used for escaping.

Examples:

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

No branches or pull requests

1 participant