sstephenson / eco

Embedded CoffeeScript templates
MIT License
1.71k stars 70 forks source link

Can't enclose eco expression within angle brackets #45

Closed KyleAMathews closed 12 years ago

KyleAMathews commented 12 years ago

E.g. if I write <<%= @email %>> then nothing is printed.

This does work < <%= @email %> > but isn't what I want.

I'm assuming this is a bug? Is there a way to escape "special" characters?

sstephenson commented 12 years ago

It's printed, but your browser will treat it as an HTML tag so you won't see it when rendered.

Use &lt; and &gt; just like you would if you were writing plain HTML.

KyleAMathews commented 12 years ago

Haha, oops -- that should of been obvious. Thanks! Love Eco.