Added ability to specify context/X when creating template views/actions.