leshill / handlebars_assets

Use handlebars.js templates with the Rails asset pipeline.
MIT License
648 stars 159 forks source link

Problem with slim bars and rails 4 #69

Closed ryudice closed 11 years ago

ryudice commented 11 years ago

Whenever I use {{outlet}} in a slimbars file I get Unknown line indicator (TEMPLATE), Line 4, Column 0 {{outlet}} ^

and if I use ==outlet instead I get undefined local variable or method `outlet'

AlexRiedler commented 11 years ago

I think you are wanting to do:

p
| {{ outlet }}

but I am not 100% certain. basically "{{ outlet }}" needs to end up a string after slim compilation.

ryudice commented 11 years ago

Thank you so much! I was about to just go back to html.