Add define statements for template to define mini-templates