change to role, and use endofscope to replace "with"
Merge redmine-review-feature-288-improve-usage-of-the-plugin-template-using-endofscope
reflect changes