I want to display the cost of the share in Quote tab using the "usd" function defined in helpers.py.
I've tried adding app.jinja_env.globals.update(usd=usd)
in application.py and then calling the function in quoted.html as {{ usd(rows.price) }}
where rows is the dictionary returned by the lookup function.
Please suggest a way to do so.
Update: It worked. Had another small bug. Adding the global env part solves the problem.
{{rows.price | usd()}}