-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 Sinatra::HamlHelpers
to sinatra-contrib
#1960
Conversation
Haml 6 retained some helpers methods, but only for Rails: https://github.com/haml/haml/blob/v6.2.3/lib/haml/rails_helpers.rb It is possible to use those, if you monkey-patch |
Brings back three helpers from Haml 5: https://github.com/haml/haml/blob/v5.2.2/lib/haml/helpers.rb#L294-L357
[ci skip]
Should be safer, so they accidentally aren't run and we don't see that.
252a50d
to
6984693
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
[ci skip] Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
Thanks for keeping this useful! |
So it is loaded by require "sinatra/contrib/all".
Brings back three helpers from Haml 5:
https://github.com/haml/haml/blob/v5.2.2/lib/haml/helpers.rb#L294-L357