Closed oliverbarnes closed 11 years ago
Emblem isn't meant to be used to create static HTML files, but rather JavaScript templates. It'll work for files ending in .js.emblem
.
...only enough to find out handlebars doesn't run out of the box with ember :)
Handlebars does work out of the box with ember, not quite sure what you mean by this...
Closing this issue as it's not an issue with emblem rails.
Ok, that elucidates it somewhat - but I was under the impression emblem would be able to replace slim templates, including .html.slim ones?
Might be a misunderstanding of mine, of course.
About handlebars not working out of the box, I meant with slim templates, sorry. Updating the issue.
Updated the issue. From what I understand, emblem-rails would be responsible for setting the template handler? In the source I only see a pre-compiler set... I might be missing something for sure, but I'd appreciate if you could clarify it, please. If handlebars is doing the handling, that explains why only pre-compiling is done. But then why don't html.emblem templates get recognized?
No, emblem renders client side templates not server side templates. If you want to render both you need to use emblem and slim in your app.
Ok, that makes sense. I see what you mean by why this wouldn't be an emblem-rails issue, but rather my newbieness in Ember :) thanks again
Hey @alexspeller, not sure if you'll remember, but after talking to you on IRC yesterday I figured out the problem I was having - a handlebars template was expected.
Once I added an inline template, the test ran, but the template broke - the handlebars syntax wasn't recognized by slim, the templating engine we were using.
Looking for a solution I learned of Emblem, and understood it was like slim, only it plugged with Ember seamlessly.
So i went ahead and installed it, and ported the slim templates to Emblem's syntax. But when I try to get the app running .emblem isn't recognized: