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

Add ECR.render for rendering without setting up an IO #6371

Merged

Conversation

straight-shoota
Copy link
Member

This macro reduces boilerplate IO pattern if you just need to render a ECR file in a string to make it more user-friendly.

There is something to be said about using the same name as ECR.embed just without the argument ioname. However, I feel like ECR.render better describes what it does. I'm not settled, though, so any suggestions are welcome.

See kemalcr/kemal#467

This method reduces boilerplate IO pattern if you just need to render a
ECR file in a string.
@sdogruyol
Copy link
Member

This is definitely useful 👍

@sdogruyol sdogruyol merged commit a2f4d61 into crystal-lang:master Jul 15, 2018
@sdogruyol sdogruyol added this to the Next milestone Jul 15, 2018
@straight-shoota straight-shoota deleted the jm/feature/ecr-render branch July 15, 2018 17:08
@RX14 RX14 modified the milestones: Next, 0.26.0 Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants