quasi-literal strawman

Ash Berlin ash_js at firemirror.com
Wed Dec 16 12:43:15 PST 2009


On 16 Dec 2009, at 20:21, Mike Samuel wrote:

> jsont`{$name:html}: <a
> href="{$url|html-attr-value}">{$anchor|html}</a>{default=html}`
> 
> function jsont(var_args) {
>  var literalPortions = Array.prototype.slice.call(arguments, 0);


So if i remember correctly:

foo`a${b}c` -> foo("a", "c')(b);

How then are these treated:

foo`a${b}${d}c`
foo`a${b}c${d}`


-ash


More information about the es-discuss mailing list