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
webpack_path
Currently if you use ERB to to generate your layouts & call the webpack_path method like:
<script src="<%= webpack_path "js" %>" defer></script>
The user will see the exception:
undefined method `webpack_path' for #<Bridgetown::ERBView:0x000055947211fd08> noMethodError: undefined method `webpack_path' for #<Bridgetown::ERBView:0x000055947211fd08> /usr/local/bundle/bundler/gems/bridgetown-20edf2cb06de/bridgetown-core/lib/bridgetown-core/ruby_template_view.rb:53:in `method_missing' /usr/src/app/src/_partials/_head.erb:4:in `__tilt_4320' /usr/local/bundle/gems/tilt-2.0.10/lib/tilt/template.rb:170:in `call' /usr/local/bundle/gems/tilt-2.0.10/lib/tilt/template.rb:170:in `evaluate' /usr/local/bundle/gems/tilt-2.0.10/lib/tilt/template.rb:109:in `render'
I'm a big fan of ERB of Liquid as it reminds me more of working with Rails, so ideally I'd prefer to do ERB in my portfolio if possible :)
We'd have to create a helper separately for ERB, which could be tricky. What is the best approach / where should this be added?
The text was updated successfully, but these errors were encountered:
Should merge in #96 first…
Sorry, something went wrong.
Fixed in #105
jaredcwhite
No branches or pull requests
Currently if you use ERB to to generate your layouts & call the
webpack_path
method like:The user will see the exception:
Motivation
I'm a big fan of ERB of Liquid as it reminds me more of working with Rails, so ideally I'd prefer to do ERB in my portfolio if possible :)
Guide-level explanation
Reference-level explanation
Drawbacks
Unresolved Questions
We'd have to create a helper separately for ERB, which could be tricky. What is the best approach / where should this be added?
The text was updated successfully, but these errors were encountered: