Is there any client side template engine with XML/ XPath support? I looked into handlebars, mustache, underscore etc. but looks like they only can accept a JSON object as it's context.
What I'm really looking for is to have xpath in expressions:
<div>
<h1>{{/person/address/street}} </h1>
</div>
Data:
<person>
<name>Some name</name>
<address>
<street>5th Lane</street>
<address>
</person>
And the JS code like:
Template.render('template.html', data.xml);
I understand it's possible to transform XML to JSON either at client-side or server-side and use handlebars. But I just wanted to avoid this transformation in order to reduce processing time.