<div dir="ltr"><div><div>Clap clap clap!!!<br><br></div>Great news!<br><br></div>Peco<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-06 15:56 GMT+01:00 Sawyer X <span dir="ltr"><<a href="mailto:xsawyerx@gmail.com" target="_blank">xsawyerx@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone,<div><br></div><div>I had a few conferences, lots of work, and then, of course, I was under the weather, so not much was heard from me in a while. Consider yourselves lucky. :)</div><div><br></div><div>However, having regained enough composure to finally merge the massive PR Snigdha Dagar has submitted as part of her work on overhauling the documentation, I'd like to share it with you, because it's too cool to keep to myself.</div><div><br></div><div>First, you can view the entire thing here:</div><div><a href="https://github.com/PerlDancer/Dancer2/commit/6eaa6a8136ad26c76a40c3aef49d86310e4474e1" target="_blank">https://github.com/PerlDancer/Dancer2/commit/6eaa6a8136ad26c76a40c3aef49d86310e4474e1</a><br></div><div><br></div><div>But you probably don't want to. Why? Here's the summary:</div><div><div>6 files changed, 2659 insertions(+), 1236 deletions(-).</div><div><br></div><div>Why? Well... let me tell you what she did. She completely restructured the Manual and Cookbook. This included deciding what should go where, make it reachable from Dancer2.pm (what's rendered when you open up Dancer2 in MetaCPAN or perldoc), and structure it within those documents in a coherent manner.</div></div><div><br></div><div>The Manual now covers:</div><div>* Installation</div><div>* Bootstrapping</div><div>* How to use Dancer2, including:</div><div> - The HTTP methods (including multi-methods)</div><div> - All route definitions</div><div> - Prefixes</div><div> - Hooks</div><div> - Handlers</div><div> - Errors</div><div> - Sessions<br></div><div> - Templates</div><div> - Static files</div><div> - File uploads</div><div> - Configuration</div><div> - Logging</div><div>* How to test Dancer2</div><div>* How to package Dancer2, currently covering:</div><div> - Carton</div><div> - FatPacker</div><div> (but more will be added)</div><div>* How to add middlewares</div><div>* Plugins</div><div>And of course,</div><div>* DSL keyword index</div><div><br></div><div>The Manual is now a proper Manual, explaining how Dancer should be used, which we could continue to expand so it covers explanations on any and all keywords as part of a guide you can read. You will still have the DSL keywords (which many of us jump for when we want to find a keyword quickly) as well, which we will slowly be using to point to the parts in the Manual which cover the keyword's usage.</div><div><br></div><div>The Cookbook now covers tricks and hints:</div><div>* Splitting your application with prefix</div><div>* Using auto_page (AutoPage itself covered in the Manual - here is only a tip to use it)</div><div>* Delivering custom error pages</div><div>* Using DBIx::Class</div><div>* Authentication</div><div>* Example for a REST application</div><div>* Recommendations on serializers</div><div>* Turning off warnings (under "Non-standard" :)</div><div>* etc.</div><div><br></div><div>If there's a tip you give others, or a pattern you found useful, this is where you could submit it so others could enjoy. It would fall under "cool stuff", rather than "the design of the framework". One describes the pieces and how they interact. The other all the cool stuff you could do with them.</div><div><br></div><div>The Deployment document (which existed in 1 and was merged into the Cookbook at 2 - not the right thing) is now its own separate document, includes everything in Dancer 1 and adds more:</div><div>* Running as CGI or FastCGI</div><div>* Running on Perl web servers</div><div>* Using different service utilities (daemontools, Ubic, etc.)</div><div>* Under a reverse proxy</div><div>* From Apache or Lighttpd</div><div><br></div><div>This is where we gather the knowledge of everyone deploying Dancer2 in various environments to make sure we have clear and useful instructions for the next person who wants to follow the same deployment pattern, and to offer examples of how you could deploy your Dancer2 applications.</div><div><br></div><div>The main module, Dancer2, now links to all of these so they are easily accessible. The DSL keyword index, since it is useful, is linked separately of the Manual, so we could find it much more quickly. This is something that nagged me personally. I never remembered *where* it was documented, and now, even though it's the proper place, I don't have to remember. Perldoc Dancer2 and it's there.</div><div><br></div><div>I'd like to thank Snigdha for all the work she's done on this. It was not easy and included a lot of research before she could even begin reading the Dancer documents, comparing the changes between 1 and 2, making decisions about the structure, and moving everything inch by inch. (There actually were a lot of commits, but I did squashed some commits together.)</div><div><br></div><div>Have a great day,</div><div>S.</div></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div></div></div></div>