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

Docs might be not up to date #78

Closed
antonhalim opened this issue Jul 20, 2016 · 1 comment
Closed

Docs might be not up to date #78

antonhalim opened this issue Jul 20, 2016 · 1 comment

Comments

@antonhalim
Copy link

antonhalim commented Jul 20, 2016

Hi! I had a little confusion on including my assets into my Roda app. I was following the doc and did <%= assets(:js) %> and my browser render literal <script /> tag into the view. It turns out I need to do double equal sign == which will be <%== assets(:js) %>instead of single equal sign while the docs here http://roda.jeremyevans.net/rdoc/classes/Roda/RodaPlugins/Assets.html#module-Roda::RodaPlugins::Assets-label-Views didn't mention so or I probably missed it somewhere.

@jeremyevans
Copy link
Owner

You need to use <%== if using the render plugin :escape option, which isn't the default behavior. This is documented in the render plugin, but if you think additional documentation would be beneficial, please submit a documentation pull request.

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

2 participants