bem-on-rails
bem-on-rails copied to clipboard
Rendering a Block on a js.erb file
My blocks renders in 'html.erb' files, but aren't rendering in a 'js.erb'.
That's my code on the js.erb:
js $('#my-item').append( '<%= block "post-comment", comment: @comment %>' );
When I check on the browser this is file looks like this:
js $('#my-item').append( '' );
Since is rendering in "html.erb", shouldn't It render in all "*.erb" files? There's some extra configuration to do?
Hi! No configuration for this. This look like a bug.