src and scope rules for ResourceTemplate