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

Upgrade ejs to v2 (w/ comments support) #5

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

cgmartin
Copy link
Contributor

@cgmartin cgmartin commented Jan 2, 2016

This PR modifies the dependencies to use the latest ejs v2.3.4, which includes support for comments <%# ... %>. Also, a unit test was added for comments support (fails with ejs v1).

I did some manual smoke testing with a few different themes and did not encounter any issues, but there is still a risk of breaking changes for existing Hexo users:

NOTE: Version 2 of EJS makes some breaking changes with this version (notably, removal of the filters feature).

Feel free to close and ignore this PR if the risk is too great. A hexo-renderer-ejs2 could be created as an alternative, giving users the option to migrate when/if they choose.

@cgmartin
Copy link
Contributor Author

cgmartin commented Jan 2, 2016

FYI I just noticed that this is a dupe of #4

@AlahmadiQ8
Copy link

+1, hexo-renderer-ejs2 would be great

@RyanZim
Copy link

RyanZim commented Jun 3, 2016

@tommy351 As a collaborator at https://github.com/mde/ejs, I'm naturally in favor of this. EJS v1 is totally unmaintained & unsupported. Perhaps hexo-renderer-ejs2 would be a good idea since EJS v2 does break backwards compatibility.

@NoahDragon
Copy link
Member

Thank you all. I'm going to create the hexo-renderer-ejs2, which I think is as simple as update the ejs version number.

@NoahDragon
Copy link
Member

I have created the EJS v2 renderer for Hexo. https://github.com/NoahDragon/hexo-renderer-ejs2

I close this pull request as the EJS v1 no longer maintained.

@NoahDragon NoahDragon closed this Dec 28, 2016
@NoahDragon NoahDragon reopened this Mar 30, 2017
@coveralls
Copy link

coveralls commented Mar 30, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling beb27cd on cgmartin:update-ejs into eefba2d on hexojs:master.

@NoahDragon NoahDragon merged commit 4a15923 into hexojs:master Mar 30, 2017
@NoahDragon
Copy link
Member

The PR has merged, and npm updated accordingly.

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

Successfully merging this pull request may close these issues.

None yet

5 participants