Flask Framework Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

How it works...

The filter can be used in our template for the product as follows:

<h3>{{ product['price']|format_currency }}</h3> 

The preceding code will yield the result shown in the following screenshot: