codebrew/backbone-rails — Issue #52: Minor issue: intro page syntax
Author: eric-hu
Created: 2011-10-14 17:31:41+00:00
State: open

The following line produces an error when the erb code from the intro page is pasted into a haml file under an erb tag
window.router = new Blog.Routers.PostsRouter({posts: <%= @posts.to_json.html_safe -%>});

The issue is just with the dash after `html_safe`. I don't believe it's necessary for .erb files either now, but could still be valid.