emcee icon indicating copy to clipboard operation
emcee copied to clipboard

HAML support for html_import_tag

Open JanOwiesniak opened this issue 10 years ago • 2 comments

HAML support would be awesome.

my-component.html.haml raises a Sprockets::FileNotFound

%polymer-element{name: "my-component"}
  %template
    Hello, #{1 * 2}.

my-component.html.erb (erb is working)

<polymer-element name="my-component">
  <template>
    <%= 1 + 2 %>
  </template>
</polymer-element>

JanOwiesniak avatar Jul 17 '14 11:07 JanOwiesniak

@janowiesniak, Sorry it took me so long to respond to this, and thanks for raising the issue. This is definitely something I want to fix, but I'm really not sure how to do that at this point.

I've done some testing, and currently the html files won't get processed by haml (as you already, know). They can be processed as erb, but even then they don't have access to the rails helper methods.

So there's a bunch of stuff I need to figure out and learn to be able to do this, but I very much want to get these fixed.

ahuth avatar Jul 23 '14 14:07 ahuth

Hi, just wanted to give you an update: I would like for this issue to be fixed, but I just don't have the need or motivation to work on this gem anymore. Sorry!

Will still accept pull requests, though.

ahuth avatar Dec 28 '14 17:12 ahuth