How to create a url using knockout js native templating.
<a href="http://" title="Visit site">
<span data-bind="text: site"></span>
</a>
say the expression
<span data-bind="text: site">
substitute www.xyz.com
. I am looking a way to prefix it with http://
.
So, something like
<a href="http://${site}" title="Visit site">
which may work with jQuery templating. In essence, I wonder we always need <span>, <li>
etc to output the text.