Open ryanlntn opened 9 years ago
I just tried adding the following test:
test('link-to test', function(){
compilesTo("| #{link-to 'aroute' | Some Text}", "{{link-to 'aroute'}}Some Text{{/link-to}}");
});
and got:
229) text: pipe character: link-to test
compilesTo assertion failed:
Emblem: "| #{link-to 'aroute' | Some Text}"
Expected: "{{link-to 'aroute'}}Some Text{{/link-to}}"
Actual: "{{link-to 'aroute' | Some Text}}"
Is this expected behavior? How are people handling inline links?
@ryanlntn this looks like a regression, there was no test for this syntax :-(
@ryanlntn If you run into other problems you can live-preview emblem compilation here: http://bantic.github.io/try-emblem/. And yes, this does look like a regression. Thanks for reporting it.
I'm getting the following errors after trying to upgrade to
0.5.0
:The emblem template code in question:
I tried removing all the pipes and now I'm seeing:
I'm not sure what I'm doing wrong here. The plaintext example on http://emblemjs.com/syntax/ seems to indicate my template is correct and it was working before I switched over.