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 Sinatra::HamlHelpers to sinatra-contrib #1960

Merged
merged 7 commits into from Dec 4, 2023

Conversation

dentarg
Copy link
Member

@dentarg dentarg commented Nov 22, 2023

@dentarg
Copy link
Member Author

dentarg commented Nov 22, 2023

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 String a little bit: https://github.com/Starkast/wikimum/pull/395/files#diff-8d6558cd6fe082484754565c92a04af566daa4bfc3ee0b8cdeb541e04dceefec

@dentarg dentarg requested a review from a team November 22, 2023 21:40
Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

sinatra-contrib/lib/sinatra/haml_helpers.rb Outdated Show resolved Hide resolved
[ci skip]

Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
@olleolleolle
Copy link
Member

Thanks for keeping this useful!

So it is loaded by require "sinatra/contrib/all".
@dentarg dentarg mentioned this pull request Nov 26, 2023
@dentarg dentarg merged commit 58f65b0 into sinatra:main Dec 4, 2023
14 checks passed
@dentarg dentarg deleted the contrib/haml-helpers branch December 8, 2023 22:25
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

2 participants