{"_id":"55fd9c6f56d6990d00a6caad","__v":0,"user":"54d64e31276f8e0d00feab94","version":{"_id":"55fd9c6d56d6990d00a6ca9d","project":"54d64e6b276f8e0d00feab95","__v":1,"createdAt":"2015-09-19T17:33:33.368Z","releaseDate":"2015-09-19T17:33:33.368Z","categories":["55fd9c6e56d6990d00a6ca9e","55fd9c6e56d6990d00a6ca9f","55fd9c6e56d6990d00a6caa0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.4.0","version":"1.4.0"},"category":{"_id":"55fd9c6e56d6990d00a6ca9f","version":"55fd9c6d56d6990d00a6ca9d","project":"54d64e6b276f8e0d00feab95","__v":1,"pages":["55fd9c6f56d6990d00a6caa9","55fd9c6f56d6990d00a6caaa","55fd9c6f56d6990d00a6caab","55fd9c6f56d6990d00a6caac","55fd9c6f56d6990d00a6caad","55fd9c6f56d6990d00a6caae","55fd9c6f56d6990d00a6caaf","55fd9c6f56d6990d00a6cab0","55fd9c6f56d6990d00a6cab1"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-07T17:51:18.995Z","from_sync":false,"order":1,"slug":"generators","title":"Generators"},"project":"54d64e6b276f8e0d00feab95","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-02-07T17:53:42.496Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"# Usage\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick generate partial <name>... [options]\\n$ kick g partial <name>... [options]\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Available Options\",\n  \"body\": \"* --controller (-c)\"\n}\n[/block]\n# Description\n\nThis will generate a partial named _your_partial_name.html in the specified state's folder:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick generate partial users/index/user-info\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nIf you don't specify a state name, the partial will be created in app/layouts/shared directory.\n\nSometimes you want your partials to belong to controller. You can use the --controller option, which will generate a partial along with its controller and also a unit test for it:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick generate partial top_bar --controller\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"partial","type":"basic","title":"Partial"}
# Usage [block:code] { "codes": [ { "code": "$ kick generate partial <name>... [options]\n$ kick g partial <name>... [options]", "language": "shell" } ] } [/block] [block:callout] { "type": "info", "title": "Available Options", "body": "* --controller (-c)" } [/block] # Description This will generate a partial named _your_partial_name.html in the specified state's folder: [block:code] { "codes": [ { "code": "$ kick generate partial users/index/user-info", "language": "shell" } ] } [/block] If you don't specify a state name, the partial will be created in app/layouts/shared directory. Sometimes you want your partials to belong to controller. You can use the --controller option, which will generate a partial along with its controller and also a unit test for it: [block:code] { "codes": [ { "code": "$ kick generate partial top_bar --controller", "language": "shell" } ] } [/block]