Currently I have the following element
<h6 class="header">
Chance of Precipitation: <span data-bind="text: PrecipitationLabel"></span>
</h6>
This works fine, but I don’t really need a span tag in my case –the observable only loads for display, so I don’t need to update an element. I know I could bind with a computed/dependent variable that combines the “Chance…” text with PrecipitationLabel, but that takes some of the static markup out of the view, which is not ideal.
Is there something similar to Razor’s tags to output just a literal?
The functionality you are looking for was added to github 11 days ago. The syntax would be:
It is not yet included in any published download.