I have inherited a large number of .yaml files that contain an attribute like this:
our_price: Our price is just <sup>$</sup><span class="amount">99.95</span> this month
Now, the client wants to be able to take our_price, add some taxes and fees, and display a total price in the jinja templates.
What I'd like to do is add a new attribute, so it looks like this:
simple_price: 99.95
our_price: Our price is just <sup>$</sup><span class="amount">simple_price</span> this month
I've tried using aliases, but it seems they only work as the entire value of the node.
Is there a way to set this up in YAML, or a way to pull out just the float from the our_price string in jinja2?