mini template (format) function for html, urls, etc