k0kubun / hamlit

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

How to know if you are using hamlit #108

Closed WaKeMaTTa closed 7 years ago

WaKeMaTTa commented 7 years ago

Hello,

How i can know if im using hamlit or haml in my application :question:

In my Gemfile i have

but in my Gemfile.lock i have

k0kubun commented 7 years ago

In Rails

ActionView::Template.handler_for_extension("haml")
=> #<Hamlit::RailsTemplate:0x005593caad2150>

In Sinatra, or any Tilt environment

Tilt["haml"]
=> Hamlit::Template

Or in all environments, you can try to render incompatibility

input

%div{ foo: false }

output in Haml

<div></div>

output in Hamlit

<div foo=''></div>