Divide the main template into multiple sub-templates using partials