3 ms·
> Why would it be moot? Because the server generates the javascript template methods. Thus the browser does not need to parse the mustache templates. It only n
by binspace 16y ago
> Why would it be moot?
Because the server generates the javascript template methods. Thus the browser does not need to parse the mustache templates. It only needs to call the compiled functions. This means the browser would not need to have an implementation of mustache running on it, since the template building is contained within the compiled javascript functions.
- aaronblohowiak 16y agoAh, ok. I thought you meant that using the mustache template on the client side would be moot, not that having a mustache compiler on the client side would be moot. It was a little confusing because I'd still say that you are "using the mustache template" on the client side even though you are actually just running the precompiled function derived from that template.