1
我继承了大量含有这样一个属性.yaml文件:如何在单个.yaml文件中设置yaml引用?
our_price: Our price is just <sup>$</sup><span class="amount">99.95</span> this month
现在,客户希望能够采取our_price,加上一些税费,并显示总价格忍者模板。
我希望做的是增加一个新的属性,所以它看起来是这样的:
simple_price: 99.95
our_price: Our price is just <sup>$</sup><span class="amount">simple_price</span> this month
我一直使用化名尝试过,但似乎他们只为节点的整个价值工作。
有没有办法在YAML对此进行设置,还是有办法从的Jinja2的our_price弦拉出来只是浮?