- Added LICENSE file to release package
- Various documentation improvements (@RyanZim)
- Better line-numbers in errors (@dgofman)
- Strict-mode support (@mde)
- Express 4 support (@mde)
- Configurable localsName option (@mde)
- Whitespace slurp tag syntax --
<%_ _%>
(@andidev)
- Fixed false positives for old
include
preprocessor directive (@mde)
- Do not require semicolons in
<%- %>
(@TimothyGu) - Use
__append
instead ofpushToOutput
(@dominykas) - Cache the character-encoding function (@alubbe)
- Correctly specify execution context with opts.context (@mde)
- Stop deferring execution of
renderFile
callback, revert to sync execution (@mde)
- Generated template functions are now prettier (@whitneyit)
- Add official documentation for EJS syntax (#9) (@TimothyGu)
- Add inline JSDoc-style documentation for public functions (#9) (@TimothyGu)
- Add a new dynamic client-side template compilation example in
examples/client-compile.html
(@TimothyGu)
- Fix running on Node.js v0.8. Note that we still do not support 0.8 officially, but if you found something that can be fixed easily please point it out. (#57) (@TimothyGu)
- Do not trim newlines at the end of files. This might be considered incompatible by some, but the new behavior is the correct one, and is consistent with EJS v1. (#60) (@TimothyGu)
- Readd deprecation warning for
scope
option that was removed in v2.2.4. It never caused any problems with Express or anything else so its removal was a mistake. (@TimothyGu) - Always rethrow the error from
new Function()
(@TimothyGu)
- Ability to customize name of the locals object with
ejs.localsName
(@mde) - Ability to override
resolveInclude
for include-path lookup (@olivierkaisin)
- Only bundle rethrow() in client scripts when compileDebug is enabled (@TimothyGu)
- Copy
_with
from locals object to options object (@TimothyGu) - Removed deprecation warnings (@mde)
- Significantly increased performance (@TimothyGu)
- Defer execution for
renderFile
callback, ensure async (@TimothyGu)
- Better filtering for deprecation notice when called from Express (@mde)
- Fix handling of variable output containing semicolons (@TimothyGu)
- Fix included files caching (@TimothyGu)
- Simplified caching routine (@TimothyGu)
- Filter out deprecation warning for
renderFile
when called from Express (@mde)
- 4x faster HTML escaping function, especially beneficial if you use lots of escaped locals (@TimothyGu)
- Up to 4x faster compiled functions in addition to above (@TimothyGu)
- Caching mode regression test coverage (@TimothyGu)
- Fix
//
in an expanded string (@TimothyGu) - Fix literal mode without an end tag (@TimothyGu)
- Fix setting options to renderFile() through the legacy 3-argument interface (as is the case for Express.js) (@TimothyGu)
- Added version string to exported object for use in browsers (@mde)
- Fix harmony mode (@mde)
- Fix
debug
option (@TimothyGu) - Fix two consecutive tags together (@TimothyGu)
- Fix
scope
option handling
- Improve testing coverage (@TimothyGu)
- Add
_with
option to control whether or not to usewith() {}
constructs (@TimothyGu) - Improve test coverage (@mde & @TimothyGu)
- Add a few more metadata fields to
package.json
(@TimothyGu)
- Revert hack for Etherpad Lite (@TimothyGu)
- Do not claim node < 0.10.0 support (@TimothyGu)
- Pin dependencies more loosely (@TimothyGu)
- Fix client function generation without using locals (@TimothyGu)
- Fix error case where the callback be called twice (@TimothyGu)
- Add
"use strict";
to all JS files (@TimothyGu) - Fix absolute path inclusion (@TimothyGu) (#11)
- Fix crash on missing file
- Linting and cosmetics
- Temporary hack for Etherpad Lite. It will be removed soon.
- Fix leaking global
fn
- Fix leaking global
includeSource
- Update client-side instructions
- Add Travis CI support
- Add LICENSE file
- Better compatibility with EJS v1 for options
- Add
debug
option
- Fix typos in examples in README
- Use lowercase package name in
package.json
- Completely rewritten
- Single custom delimiter (e.g.,
?
) withdelimiter
option instead ofopen
/close
options include
now runtime function call instead of preprocessor directive- Variable-based includes now possible
- Comment tag support (
<%#
)
- Data and options now separate params (i.e.,
render(str, data, options);
)
- Removed support for filters