coolony / kiwi

Simple yet powerful asynchronous JavaScript template engine based on jQuery Template syntax, usable server-side or client-side.
MIT License
41 stars 6 forks source link

Unknown filter `raw` #16

Closed panosru closed 12 years ago

panosru commented 12 years ago

From the docs raw filter is mentioned but when I try to use it I get Error: Rendering error: Unknown filter raw. from what I see in the source of Kiwi under lib/filters/base.js raw filter is not present.

panosru commented 12 years ago

Ah I was trying this: {{= foobar|raw }} instead of ${foobar|raw}

So filters are not working with {{= }} ?

pierreis commented 12 years ago

It is working with {{= }} (actually, a preprocessor translates all ${} internally before parsing). Just that it does not (as of today) trim the filter names.

{{= foo|raw}} will work, {{= foo|raw }} won't.

I will add support for this.

panosru commented 12 years ago

ah I see, tricky one :)

Thanks!