{"extended":{"hasExtended":true,"docs":"
// This will provide the formats defined in the `init()` function\nproducts = model("product").findAll();\nrenderWith(products);"},"hint":"Instructs the controller to render the data passed in to the format that is requested. If the format requested is json or xml, CFWheels will transform the data into that format automatically. For other formats (or to override the automatic formatting), you can also create a view template in this format: nameofaction.xml.cfm, nameofaction.json.cfm, nameofaction.pdf.cfm, etc.","returntype":"","slug":"renderwith","parameters":[{"default":"","required":"true","hint":"Data to format and render.","name":"data","type":"any"},{"default":"","required":"false","hint":"See documentation for renderPage.","name":"controller","type":"string"},{"default":"","required":"false","hint":"See documentation for renderPage.","name":"action","type":"string"},{"default":"","required":"false","hint":"See documentation for renderPage.","name":"template","type":"string"},{"default":"","required":"false","hint":"See documentation for renderPage.","name":"layout","type":"any"},{"default":"","required":"false","hint":"See documentation for renderPage.","name":"cache","type":"any"},{"default":"","required":"false","hint":"See documentation for renderPage.","name":"returnAs","type":"string"},{"default":"false","required":"false","hint":"See documentation for renderPage.","name":"hideDebugInformation","type":"boolean"}],"name":"renderWith","availableIn":{},"tags":{"categoryClass":"","sectionClass":"","category":"","section":""}}