You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement the currencyfmt sprig function in one of my page templates
I get the following error: function "currencyfmt" not defined
when the following line in the template is executed: <tr><td>Tax</td><td> {{currencyfmt .Data.Tax "ZAR" 2}}</td></tr>
Can anyone give me some pointers as to how the sprig functions are brought into the template within the Pagoda environment?
The text was updated successfully, but these errors were encountered:
The funcmap is built here. All sprig functions are included. That's initialized here and passed to the template renderer. And it's added to all compiled templates here.
I don't see currencyfmt in sprig. Are you sure that's included? Was it in a recent version and maybe you're using an older one?
I am trying to implement the currencyfmt sprig function in one of my page templates
I get the following error:
function "currencyfmt" not defined
when the following line in the template is executed:
<tr><td>Tax</td><td> {{currencyfmt .Data.Tax "ZAR" 2}}</td></tr>
Can anyone give me some pointers as to how the sprig functions are brought into the template within the Pagoda environment?
The text was updated successfully, but these errors were encountered: