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