k0kubun / hamlit

High Performance Haml Implementation
https://rubygems.org/gems/hamlit
Other
981 stars 59 forks source link

turbo_frame_tag (Hotwire) not available in haml views/partials #183

Closed muriloime closed 3 years ago

muriloime commented 3 years ago

Hello there,

I've realized that in the same app turbo_frame_tag is available in erb views, but not in haml views when using hotwire-rails gem, the message error being undefined method turbo_frame_tag for #<DashboardComponent. I guess some Turbo/Hotwire helpers are not being loaded when using hamlit gem. Is this possible?

PS. I can provide a minimal reproducible example if needed

Cheers and thanks in advance

muriloime commented 3 years ago

Never mind, closing the issue. It turns out I didn't include the helper in my component. My apologies