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
Hi all, I am using mustache templates to customise the API documentation, and some of the values I am replacing are numbers, but they are not coming out right in the final HTML output (for instance, -10.0 becomes -103 and 0.0001 become 0.00014). I added a helper function in ManagedReference.html.primary.tmpl to stringify the numbers, and verified that they are strings in the viewmodel, but it doesnt fix the issue. Not sure what the problem is, but has anyone else also found a solution that works?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all, I am using mustache templates to customise the API documentation, and some of the values I am replacing are numbers, but they are not coming out right in the final HTML output (for instance, -10.0 becomes -103 and 0.0001 become 0.00014). I added a helper function in ManagedReference.html.primary.tmpl to stringify the numbers, and verified that they are strings in the viewmodel, but it doesnt fix the issue. Not sure what the problem is, but has anyone else also found a solution that works?
Beta Was this translation helpful? Give feedback.
All reactions