Closed jkopczyn closed 9 years ago
Hm, not sure why you'd be seeing that. This gem does nothing to modify the way ejs works.
Maybe an issue with ruby-ejs
?
I'll look into that. I'm in a group who were all using a similar setup, and the difference seemed to be that I used your scaffold generation, so I assumed that was the cause.
@jkopczyn I ran into a similar issue without this gem. Can you check your router code please? I suspect it contains this:
routes: {
"": "index"
},
which just means: reviews/index
will be available under route reviews
.
I definitely did that. Thanks for mentioning it.
I have a Backbone View ReviewsIndex, wrote the template in
templates/reviews/index.jst.ejs
, and attempted to give it the templateJST["reviews/index"]
, but this was said to be undefined.Hours later, I discovered the
JST["reviews"]
alias. Which is nice, but not being able to invoke it by name as expected caused me endless headache. Please fix this undocumented feature.EDIT: I'm (reluctantly) using Javascript, not Coffeescript.