JulienCabanes / requirejs-tpl

RequireJS Template Plugin
207 stars 43 forks source link

support underscore's <%- %> tag (escaped output) #12

Open damienklinnert opened 11 years ago

damienklinnert commented 11 years ago

this would be great, because escaped output is often necessary!

dawsontoth commented 10 years ago

You might check out https://github.com/ZeeAgency/requirejs-tpl/pull/11 if you haven't already (and my fork). It uses underscore.js, so you'd have access to anything their templates can do.

jdaudier commented 10 years ago

Does this mean <%- %> tag is still not supported? Sorry if I missed the answer.

dawsontoth commented 10 years ago

Check out my fork, @jdaudier. It is supported there.

jdaudier commented 10 years ago

@dawsontoth Does this mean I have to use your version of the tpl.js file on https://github.com/dawsontoth/requirejs-tpl/tree/c28fe540d670681b775363c511583a6b7bd5917d?

dawsontoth commented 10 years ago

Yes. Try it for yourself. Decide if you like it, it works, etc.

jdaudier commented 10 years ago

It didn't work for me @dawsontoth. Is there something special I need to do other than just saving over my old tpl.js with this one? https://raw.githubusercontent.com/dawsontoth/requirejs-tpl/master/tpl.js

dawsontoth commented 10 years ago

@jdaudier I created a new issue over on my fork -- https://github.com/dawsontoth/requirejs-tpl/issues/3 -- let's continue this discussion there!