index.tt 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!--
  2. Credit goes to the Ruby on Rails team for this page
  3. has been heavily based on the default Rails page that is
  4. built with a scaffolded application.
  5. Thanks a lot to them for their work.
  6. See Ruby on Rails if you want a kickass framework in Ruby:
  7. http://www.rubyonrails.org/
  8. -->
  9. <div id="page">
  10. <div id="sidebar">
  11. <ul id="sidebar-items">
  12. <li>
  13. <h3>Join the community</h3>
  14. <ul class="links">
  15. <li><a href="http://perldancer.org/">PerlDancer</a></li>
  16. <li><a href="http://twitter.com/PerlDancer/">Official Twitter</a></li>
  17. <li><a href="https://github.com/sukria/Dancer/">GitHub Community</a></li>
  18. </ul>
  19. </li>
  20. <li>
  21. <h3>Browse the documentation</h3>
  22. <ul class="links">
  23. <li><a
  24. href="http://search.cpan.org/dist/Dancer/lib/Dancer/Introduction.pod">Introduction</a></li>
  25. <li><a href="http://search.cpan.org/dist/Dancer/lib/Dancer/Cookbook.pod">Cookbook</a></li>
  26. <li><a href="http://search.cpan.org/dist/Dancer/lib/Dancer/Deployment.pod">Deployment Guide</a></li>
  27. <li><a
  28. href="http://search.cpan.org/dist/Dancer/lib/Dancer/Tutorial.pod"
  29. title="a tutorial to build a small blog engine with Dancer">Tutorial</a></li>
  30. </ul>
  31. </li>
  32. <li>
  33. <h3>Your application's environment</h3>
  34. <ul>
  35. <li>Location: <code>/home/aloism/sandbox/sugar-trail.dancer/SugarTrail</code></li>
  36. <li>Template engine: <code><% settings.template %></code></li>
  37. <li>Logger: <code><% settings.logger %></code></li>
  38. <li>Environment: <code><% settings.environment %></code></li>
  39. </ul>
  40. </li>
  41. </ul>
  42. </div>
  43. <div id="content">
  44. <div id="header">
  45. <h1>Perl is dancing</h1>
  46. <h2>You&rsquo;ve joined the dance floor!</h2>
  47. </div>
  48. <div id="getting-started">
  49. <h1>Getting started</h1>
  50. <h2>Here&rsquo;s how to get dancing:</h2>
  51. <h3><a href="#" id="about_env_link">About your application's environment</a></h3>
  52. <div id="about-content" style="display: none;">
  53. <table>
  54. <tbody>
  55. <tr>
  56. <td>Perl version</td>
  57. <td><tt><% perl_version %></tt></td>
  58. </tr>
  59. <tr>
  60. <td>Dancer version</td>
  61. <td><tt><% dancer_version %></tt></td>
  62. </tr>
  63. <tr>
  64. <td>Backend</td>
  65. <td><tt><% settings.apphandler %></tt></td>
  66. </tr>
  67. <tr>
  68. <td>Appdir</td>
  69. <td><tt>/home/aloism/sandbox/sugar-trail.dancer/SugarTrail</tt></td>
  70. </tr>
  71. <tr>
  72. <td>Template engine</td>
  73. <td><tt><% settings.template %></tt></td>
  74. </tr>
  75. <tr>
  76. <td>Logger engine</td>
  77. <td><tt><% settings.logger %></tt></td>
  78. </tr>
  79. <tr>
  80. <td>Running environment</td>
  81. <td><tt><% settings.environment %></tt></td>
  82. </tr>
  83. </tbody>
  84. </table>
  85. </div>
  86. <script type="text/javascript">
  87. $('#about_env_link').click(function() {
  88. $('#about-content').slideToggle('fast', function() {
  89. // ok
  90. });
  91. return( false );
  92. });
  93. </script>
  94. <ol>
  95. <li>
  96. <h2>Tune your application</h2>
  97. <p>
  98. Your application is configured via a global configuration file,
  99. <tt>config.yml</tt> and an "environment" configuration file,
  100. <tt>environments/development.yml</tt>. Edit those files if you
  101. want to change the settings of your application.
  102. </p>
  103. </li>
  104. <li>
  105. <h2>Add your own routes</h2>
  106. <p>
  107. The default route that displays this page can be removed,
  108. it's just here to help you get started. The template used to
  109. generate this content is located in
  110. <code>views/index.tt</code>.
  111. You can add some routes to <tt>lib/SugarTrail.pm</tt>.
  112. </p>
  113. </li>
  114. <li>
  115. <h2>Enjoy web development again</h2>
  116. <p>
  117. Once you've made your changes, restart your standalone server
  118. (bin/app.pl) and you're ready to test your web application.
  119. </p>
  120. </li>
  121. </ol>
  122. </div>
  123. </div>
  124. </div>