scope and src rule for Templates and srcVar for ResourceTemplate