Generate code of view subjects and actions [v1]