]> git.ktnx.net Git - lsl.git/blob - views/index.tt
7b8eb8e0df6b20de433e1a18d0a66e2f81dee877
[lsl.git] / views / index.tt
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.
6
7     Thanks a lot to them for their work.
8
9     See Ruby on Rails if you want a kickass framework in Ruby:
10     http://www.rubyonrails.org/
11 -->
12
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">
19
20               <li><a href="https://perldancer.org/">PerlDancer Website</a></li>
21               <li><a href="https://twitter.com/PerlDancer/">Official Twitter</a></li>
22               <li><a href="https://github.com/PerlDancer/Dancer2/">GitHub Community</a></li>
23               <li><a href="https://lists.perldancer.org/mailman/listinfo/dancer-users">Mailing List</a></li>
24               <li><a href="irc://irc.perl.org/dancer">IRC</a></li>
25             </ul>
26           </li>
27
28           <li>
29             <h3>Browse the documentation</h3>
30
31             <ul class="links">
32               <li><a
33               href="https://metacpan.org/pod/Dancer2::Manual">Introduction</a></li>
34               <li><a href="https://metacpan.org/pod/Dancer2::Cookbook">Cookbook</a></li>
35               <li><a
36               href="https://metacpan.org/pod/Dancer2::Tutorial"
37               title="a tutorial to build a small blog engine with Dancer">Tutorial</a></li>
38               <li><a href="https://metacpan.org/pod/Dancer2::Manual::Deployment">Deployment</a></li>
39             </ul>
40           </li>
41
42           <li>
43             <h3>Your application's environment</h3>
44
45             <ul>
46                 <li>Location: <span class="filepath">/btrfs/home/dam/w/lsl/tmp/App::REST::LazyShoppingList</span></li>
47                 <li>Template engine: <span class="app-info"><% settings.template %></span></li>
48                 <li>Logger: <span class="app-info"><% settings.logger %></span></li>
49                 <li>Environment: <span class="app-info"><% settings.environment %></span></li>
50             </ul>
51
52           </li>
53         </ul>
54
55       </div>
56
57       <div id="content">
58         <div id="header">
59           <h1>Perl is dancing</h1>
60           <h2>You&rsquo;ve joined the dance floor!</h2>
61         </div>
62
63         <div id="getting-started">
64           <h1>Getting started</h1>
65           <h2>Here&rsquo;s how to get dancing:</h2>
66
67           <h3><a href="#" id="about_env_link">About your application's environment</a></h3>
68
69           <div id="about-content" style="display: none;">
70             <table>
71                 <tbody>
72                 <tr>
73                     <td>Perl version</td>
74                     <td><span class="app-info"><% perl_version %></span></td>
75                 </tr>
76                 <tr>
77                     <td>Dancer2 version</td>
78                     <td><span class="app-info"><% dancer_version %></span></td>
79                 </tr>
80                 <tr>
81                     <td>Backend</td>
82                     <td><span class="app-info"><% settings.apphandler %></span></td>
83                 </tr>
84                 <tr>
85                     <td>Appdir</td>
86                     <td><span class="filepath">/btrfs/home/dam/w/lsl/tmp/App::REST::LazyShoppingList</span></td>
87                 </tr>
88                 <tr>
89                     <td>Template engine</td>
90                     <td><span class="app-info"><% settings.template %></span></td>
91                 </tr>
92                 <tr>
93                     <td>Logger engine</td>
94                     <td><span class="app-info"><% settings.logger %></span></td>
95                 </tr>
96                 <tr>
97                     <td>Running environment</td>
98                     <td><span class="app-info"><% settings.environment %></span></td>
99                 </tr>
100                 </tbody>
101             </table>
102           </div>
103
104     <script type="text/javascript">
105     $('#about_env_link').click(function() {
106         $('#about-content').slideToggle('fast', function() {
107             // ok
108         });
109         return false;
110     });
111     </script>
112
113
114           <ol>
115             <li>
116               <h2>Tune your application</h2>
117
118               <p>
119               Your application is configured via a global configuration file,
120               <span class="filepath">config.yml</span> and an "environment" configuration file,
121               <span class="filepath">environments/development.yml</span>. Edit those files if you
122               want to change the settings of your application.
123               </p>
124             </li>
125
126             <li>
127               <h2>Add your own routes</h2>
128
129               <p>
130               The default route that displays this page can be removed,
131               it's just here to help you get started. The template used to
132               generate this content is located in
133               <span class="filepath">views/index.tt</span>.
134               You can add some routes to <span class="filepath">lib/App/REST/LazyShoppingList.pm lib/App/REST/LazyShoppingList.pm</span>.
135               </p>
136             </li>
137
138             <li>
139               <h2>Enjoy web development again</h2>
140
141               <p>
142               Once you've made your changes, restart your standalone server
143               <span class="filepath">(bin/app.psgi)</span> and you're ready
144               to test your web application.
145               </p>
146             </li>
147
148           </ol>
149         </div>
150       </div>
151     </div>