Add the macro and instruction of generating of templates