-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
Support template dependency tracking in Rails 4 #456
Comments
Should this be part of slim-rails or slim? |
@minad Since Slim claims that That said, I think that everything related to frameworks integration should be in a separate gem, with only the templating parts in |
@minad Maybe I would really like slim to take advantage of dependency tracking. |
moved issue to slim-rails |
Hi,
I've noticed that nested partials were not used in the dependency tracking for Rails 4 caching.
With cache enabled, Rails is hashing each template to detect changes and change the cache key. It is also configured to look inside ERB templates and partials for inclusion of other templates of partials. The problem is that Rails is only looking inside
*.erb
files. When using Slim, only the top template is analyzed.In the [indirect/haml-rails](https://github.com/indirect/haml-rails/] project, there is a railtie that registers the tracker for
*.haml
templates.I guess Slim should do something similar.
I've added a basic initializer in my app and it works :
The text was updated successfully, but these errors were encountered: