just a note: one object sent to the template file is metadata about each field, including the type.  there is a "percent" type, which could use 0..100 (if desired).  Other types can just use the data dynamically.

Yes I know this is a JS file, but could be passed in.  Just wanted to mention that it's available.