Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies for Tilt::HamlTemplate ignored #68

Open
chewi opened this issue Jun 25, 2013 · 0 comments
Open

Dependencies for Tilt::HamlTemplate ignored #68

chewi opened this issue Jun 25, 2013 · 0 comments

Comments

@chewi
Copy link

chewi commented Jun 25, 2013

I am generating static HTML files from Haml templates. I have noticed that these assets do not get updated when the dependencies change and after looking closer, it seems that turbo-sprockets isn't able to determine the dependencies. The problem appears to be twofold. To get it to work, I firstly had to add Tilt::HamlTemplate to the list of allowed engines in Sprockets::UnprocessedAsset. Secondly, calling stylesheet_link_tag and javascript_include_tag alone wasn't sufficient so I had to do this...

- depend_on_asset "foo.css"
= stylesheet_link_tag "foo.css"
- depend_on_asset "foo.js"
= javascript_include_tag "foo.js"

I don't want to have to fork turbo-sprockets just to change one line though so could Tilt::HamlTemplate be added? However, I do get the feeling that none of this should be necessary and I may have missed a trick somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant