<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi James,<div><br></div><div>I see, though my main.tt layout is still in the background. I guess that whatever template in the /views the plugin always uses the main.tt as layout? As I was confused by the docs saying:</div><div><br></div><div>Any global layout will be applied automatically because this option causes the module to use the <code>template</code> keyword.<br><div><br></div><div>Changing look of the template comes down to changing to code in the SimpleCrud.pm I see. </div><div><br></div><div>Thanks,</div><div>Gert</div><div><br></div><div><br></div><div><div><div>On 10 Mar 2014, at 10:22, James Ronan <<a href="mailto:james@ronanweb.co.uk">james@ronanweb.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Gert,<br><br>On 10/03/14 06:04, Gert van Oss wrote:<br><blockquote type="cite">Dear Dancers,<br><br>Enjoying Dancer::Plugin::SimpleCRUD. Really a great tool. <br><br>Just one thing I'm having a problem with is the use of a template. <br>Is it possible to adjust the view that comes out of the box and where can I find this view?<br><br>If not then reading the docs it says that: "a template must have a "simple_crud" placeholder defined or you won't get any output. This template must be located in your "views" directory."<br></blockquote><br>What the documentation is saying here (which arguably might be made<br>clearer) is your template requires a token with the name 'simple_crud'<br>like so:<br><br>  [% simple_crud %]<br><br><br><blockquote type="cite">This maybe should all be obvious but setting up a view with <br><br>[% render_content %]<br><br>doesn't work. Should I define all database fields in the template?<br></blockquote><br>Replace this with the one above, and you should see the SimpleCRUD<br>output in your template.<br><br>Cheers,<br>JamesR<br><br><br>-- <br>James Ronan<br>_______________________________________________<br>dancer-users mailing list<br><a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>http://lists.preshweb.co.uk/mailman/listinfo/dancer-users<br></blockquote></div><br></div></div></body></html>