define-function with prefix defines macro
Fix to date in template