Illegal nesting: nesting within plain text is illegal. #37

Closed
frodsan opened this Issue Apr 17, 2012 · 6 comments

Comments

Projects
None yet
3 participants
Contributor

frodsan commented Apr 17, 2012

I'm getting this error Illegal nesting: nesting within plain text is illegal.

when i use handlebars filter:

handlebars:
    {{view Ember.Button}}OK{{/view}}
Member

tchak commented Apr 18, 2012

hmm could it be a matter of number of spaces/tabs you use?

Contributor

btelles commented Apr 19, 2012

I'm getting exactly the same error. It appears the handlebars filter isn't getting registered. Either that or I'm putting the handlebars filter in the wrong file. We're supposed to put it in regular view files like "app/views/welcome/index.html.haml" right?

tchak closed this in c5686dc Apr 19, 2012

Member

tchak commented Apr 19, 2012

Let me know if you still have a problem

Contributor

btelles commented Apr 19, 2012

P.S. I figured out the problem with @frodsan 's and my code. We were putting the colon ":" AFTER the filter name, instead of before. I'll submit a tiny pull request to correct the readme that says to put the colon after the name.

Contributor

btelles commented Apr 19, 2012

done.

Contributor

frodsan commented Apr 19, 2012

I put the colon before the name and it's working OK. Thanks ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment