This PR adds some basic arithmetic and loop helpers to boilerplate. This will make it a bit easier to perform basic math, loops, etc.
I’ve also updated the existing math helpers to take any type of value and try to convert it to an int, rather than explicitly requiring an int or float64 or a specific type. When working inside a template, you often have a mix of strings, ints, floats, etc and having to do specific type conversions is not usually an option.
This PR adds some basic arithmetic and loop helpers to boilerplate. This will make it a bit easier to perform basic math, loops, etc.
I’ve also updated the existing math helpers to take any type of value and try to convert it to an int, rather than explicitly requiring an int or float64 or a specific type. When working inside a template, you often have a mix of strings, ints, floats, etc and having to do specific type conversions is not usually an option.