Closed jgelens closed 10 years ago
I'm generating a file filling Ember.TEMPLATES manually:
Ember.TEMPLATES[templateName] = Emblem.compile('some vanilla string template')
This work perfectly for Handlebars, but when removing line breaks in Emblem it breaks of course. Is there a way to do same thing using Emblem templates?
Replace the line breaks with '\n' in your string and it should work, e.g.
Emblem.compile("p Hello\np Next line")
I'm generating a file filling Ember.TEMPLATES manually:
This work perfectly for Handlebars, but when removing line breaks in Emblem it breaks of course. Is there a way to do same thing using Emblem templates?