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

Provide :all and :app helpers for stylesheet references via cached methods #190

Merged
merged 6 commits into from
May 20, 2024

Conversation

dhh
Copy link
Member

@dhh dhh commented May 19, 2024

Add caching to stylesheet_link_tag :all so we don't search the load path every time when the files haven't changed in production.

Add stylesheet_link_tag :app to grab just the css files from app/assets/stylesheets/**/*.css and not all the potential engine load paths that have been added as well.

@dhh dhh merged commit 463a502 into main May 20, 2024
6 checks passed
@dhh dhh deleted the cached-asset-path-methods branch May 20, 2024 23:02
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

Successfully merging this pull request may close these issues.

2 participants