String identity template tag

T.J. Crowder tj.crowder at farsightsoftware.com
Tue Dec 11 10:41:09 UTC 2018


On Mon, Dec 10, 2018 at 7:08 PM Isiah Meadows
<isiahmeadows at gmail.com> wrote:
>
> It'd be *way* easier to construct simple template tags if there was a
> built-in identity tag

Wholeheartedly agree, a couple of months ago I considered posting something
very similar, both for utility reasons and in hopes that it would be an
optimization target (being a standard operation).

I find the name `identity` unilluminating, though, partially because it's
not quite the same meaning as the usual "identity" function (`function
identity(x) { return x; }`), though it's close. `assemble`?

-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20181211/beded0cc/attachment.html>


More information about the es-discuss mailing list