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

on_slim_embedded raises ArgumentError with Sinatra and slim/include #819

Closed
betrue12 opened this issue Aug 31, 2018 · 0 comments
Closed

Comments

@betrue12
Copy link

When I use embedding such as javascript: in some condition, on_slim_embedded raises ArgumentError.

ArgumentError - wrong number of arguments (given 3, expected 2):
        /var/lib/gems/2.5.0/gems/slim-4.0.0/lib/slim/filter.rb:16:in `on_slim_embedded'

Condition

When using Slim v4.0.0 with Sinatra, and requiring slim/include.

I confirmed that this error doesn't occur when I use slimrb, nor Sinatra without requiring slim/include.

Slim v3.0.9 works well.

Environment

  • Ubuntu 18.04
  • Ruby 2.5.1p57
  • Gems
    • slim 4.0.0
    • sinatra 2.0.3
    • temple 0.8.0
    • tilt 2.0.8

Sample code and full stacktrace

Too long, so I uploaded them in my Gist.

https://gist.github.com/betrue12/d1cfdd858669889b6c9cb24ebf950f72

Thank you!

stonean pushed a commit that referenced this issue Sep 1, 2018
@stonean stonean closed this as completed Sep 1, 2018
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