add helper function for mustache templates