Answer the question
In order to leave comments, you need to log in
Ruby On Rails: Serve static html from haml via Asset Pipeline?
I need to load its template in AngularJS directive via templateUrl.
I want to write the template in haml.
I want to do something like asset_url('templates/login.html.haml') so that I get generated html in response.
Enabled haml support in sprockets, after rake assets:precompile generated html appears in public.
But I still need to:
1. Make it work in dev, without precompile
2. Find out the url for dev and production, where to pick up the file
Mastodons, help me out :)
Answer the question
In order to leave comments, you need to log in
The problem lay in the directory structure
/app /assets /javascripts /stylesheets /templates /login.html.haml
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question