Move tal:define into macro tag in generated main_template