Closed inem closed 5 years ago
I.e. it shouldn't rely on cli tool in order to convert haml to html. Instead it should do it using regular (which one?) programmatic interface.
Ideally for us it shouldn't even matter whether we have haml or hamlit gem installed.
It looks like this is what we need:
template = File.read('templates/really_cool_template.haml') haml_engine = Haml::Engine.new(template) output = haml_engine.render puts output
http://haml.info/docs/yardoc/Haml/Engine.html
I.e. it shouldn't rely on cli tool in order to convert haml to html. Instead it should do it using regular (which one?) programmatic interface.
Ideally for us it shouldn't even matter whether we have haml or hamlit gem installed.