We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There doesn't seem to be a clean way to pass locals to a partial.
I'd like to be able to use this syntax, but it doesn't work (at least it's not working for me in Deface 1.0.2):
Deface::Override.new( virtual_path: "spree/layouts/spree_application", name: "frontend_add_google_tag_manager", insert_top: "body[data-hook='body']", partial: 'spree/shared/google_tag_manager', locals: { container_id: Rails.application.config.google_tag_manager[:container_id] }, )
The following works, but it's not very pretty since there's so much in the text: string:
text:
Deface::Override.new( virtual_path: "spree/layouts/spree_application", name: "frontend_add_google_tag_manager", insert_top: "body[data-hook='body']", text: "<%= render partial: 'spree/shared/google_tag_manager', locals: { container_id: Rails.application.config.google_tag_manager[:container_id] } %>", )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There doesn't seem to be a clean way to pass locals to a partial.
I'd like to be able to use this syntax, but it doesn't work (at least it's not working for me in Deface 1.0.2):
The following works, but it's not very pretty since there's so much in the
text:
string:The text was updated successfully, but these errors were encountered: