根据商店的不包含货币 code 格式的设置(参考 货币自定义格式),以及给定的金额,生成一个格式化的价格。
{{ price | money() }} 返回一个 string。
{{ price | money() }}
price float, integer:金额。
price
float
integer
code string:币种代码,默认值为主要市场币种。
code
string
currency currency:货币信息,包括货币的 iso_code、name 和 symbol。
currency
iso_code
name
symbol
{{{ 10000 | money() }}}
{{{ 10000 | money(code="USD") }}}