move template documentation to the template directive