Change template to appended string or function

Instead of messing around with string interpolation now just append a
passed in string, or allow the user to customize the output with a
function.