<div id='thingToReplaceWithData1234"></div>
and then adding a child text node or such to that element. Whether you do that via InnerHTML or CreateTextNode doesn't matter, either seems faster and easier to me than doing a string substitution.
But I don't know, I never really got the appeal of the framework of the week. If it helps write decent web sites, then I guess that's good, but I've noticed that simple sites now are ridiculously slow and I'm guessing this is the reason.
The reason people use templating languages client-side are exactly the same as they use them server-side, it's much easier to maintain a larger app.
Most template languages are extremely lightweight and blazingly fast, slow websites are 99% of the time due to sending too much content or slow server-side processing.
TLDR: It depends, but DOM manipulation tends to be faster in newer browsers.