Quasi-literals for templating?

Axel Rauschmayer axel at rauschma.de
Sun Jun 12 04:35:32 PDT 2011


http://wiki.ecmascript.org/doku.php?id=harmony:quasis

Quasi-literals look like they could be used for templating (similar to jQuery templating [1]). For example, to turn JSON data into HTML.

Has that been considered as a use case (e.g. after a compilation/generation step?). But it doesn’t seem like identifier names are accessible to quasi handlers, which would make this difficult.

BTW: “Desugaring” at the beginning of “Semantics” seems mangled.

[1] http://api.jquery.com/template

Axel

-- 
Dr. Axel Rauschmayer

axel at rauschma.de
twitter.com/rauschma

home: rauschma.de
blog: 2ality.com





More information about the es-discuss mailing list