Skip to content

Commit 409ade0

Browse files
committed
Pristine Dancer template, generated with "dancer -a"
0 parents  commit 409ade0

22 files changed

+809
-0
lines changed

MANIFEST

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MANIFEST
2+
bin/app.pl
3+
config.yml
4+
environments/development.yml
5+
environments/production.yml
6+
views/index.tt
7+
views/layouts/main.tt
8+
MANIFEST.SKIP
9+
lib/dancer_bootstrap_fontawesome_template.pm
10+
public/css/style.css
11+
public/css/error.css
12+
public/images/perldancer-bg.jpg
13+
public/images/perldancer.jpg
14+
public/500.html
15+
public/404.html
16+
public/dispatch.fcgi
17+
public/favicon.ico
18+
public/dispatch.cgi
19+
public/javascripts/jquery.js
20+
t/002_index_route.t
21+
t/001_base.t
22+
Makefile.PL

MANIFEST.SKIP

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
^\.git\/
2+
maint
3+
^tags$
4+
.last_cover_stats
5+
Makefile$
6+
^blib
7+
^pm_to_blib
8+
^.*.bak
9+
^.*.old
10+
^t.*sessions
11+
^cover_db
12+
^.*\.log
13+
^.*\.swp$

Makefile.PL

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
use strict;
2+
use warnings;
3+
use ExtUtils::MakeMaker;
4+
5+
WriteMakefile(
6+
NAME => 'dancer_bootstrap_fontawesome_template',
7+
AUTHOR => q{YOUR NAME <youremail@example.com>},
8+
VERSION_FROM => 'lib/dancer_bootstrap_fontawesome_template.pm',
9+
ABSTRACT => 'YOUR APPLICATION ABSTRACT',
10+
($ExtUtils::MakeMaker::VERSION >= 6.3002
11+
? ('LICENSE'=> 'perl')
12+
: ()),
13+
PL_FILES => {},
14+
PREREQ_PM => {
15+
'Test::More' => 0,
16+
'YAML' => 0,
17+
'Dancer' => 1.3095,
18+
},
19+
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
20+
clean => { FILES => 'dancer_bootstrap_fontawesome_template-*' },
21+
);

bin/app.pl

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env perl
2+
use Dancer;
3+
use dancer_bootstrap_fontawesome_template;
4+
dance;

config.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This is the main configuration file of your Dancer app
2+
# env-related settings should go to environments/$env.yml
3+
# all the settings in this file will be loaded at Dancer's startup.
4+
5+
# Your application's name
6+
appname: "dancer_bootstrap_fontawesome_template"
7+
8+
# The default layout to use for your application (located in
9+
# views/layouts/main.tt)
10+
layout: "main"
11+
12+
# when the charset is set to UTF-8 Dancer will handle for you
13+
# all the magic of encoding and decoding. You should not care
14+
# about unicode within your app when this setting is set (recommended).
15+
charset: "UTF-8"
16+
17+
# template engine
18+
# simple: default and very basic template engine
19+
# template_toolkit: TT
20+
21+
template: "simple"
22+
23+
# template: "template_toolkit"
24+
# engines:
25+
# template_toolkit:
26+
# encoding: 'utf8'
27+
# start_tag: '[%'
28+
# end_tag: '%]'
29+

environments/development.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# configuration file for development environment
2+
3+
# the logger engine to use
4+
# console: log messages to STDOUT (your console where you started the
5+
# application server)
6+
# file: log message to a file in log/
7+
logger: "console"
8+
9+
# the log level for this environment
10+
# core is the lowest, it shows Dancer's core log messages as well as yours
11+
# (debug, info, warning and error)
12+
log: "core"
13+
14+
# should Dancer consider warnings as critical errors?
15+
warnings: 1
16+
17+
# should Dancer show a stacktrace when an error is caught?
18+
show_errors: 1
19+
20+
# auto_reload is a development and experimental feature
21+
# you should enable it by yourself if you want it
22+
# Module::Refresh is needed
23+
#
24+
# Be aware it's unstable and may cause a memory leak.
25+
# DO NOT EVER USE THAT FEATURE IN PRODUCTION
26+
# OR TINY KITTENS SHALL DIE WITH LOTS OF SUFFERING
27+
auto_reload: 0

environments/production.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# configuration file for production environment
2+
3+
# only log warning and error messsages
4+
log: "warning"
5+
6+
# log message to a file in logs/
7+
logger: "file"
8+
9+
# don't consider warnings critical
10+
warnings: 0
11+
12+
# hide errors
13+
show_errors: 0
14+
15+
# cache route resolution for maximum performance
16+
route_cache: 1
17+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package dancer_bootstrap_fontawesome_template;
2+
use Dancer ':syntax';
3+
4+
our $VERSION = '0.1';
5+
6+
get '/' => sub {
7+
template 'index';
8+
};
9+
10+
true;

public/404.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3+
<html>
4+
<head>
5+
<title>Error 404</title>
6+
<link rel="stylesheet" href="/css/error.css" />
7+
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
8+
</head>
9+
<body>
10+
<h1>Error 404</h1>
11+
<div id="content">
12+
<h2>Page Not Found</h2><p>Sorry, this is the void.</p>
13+
</div>
14+
<div id="footer">
15+
Powered by <a href="http://perldancer.org/">Dancer</a>.
16+
</div>
17+
</body>
18+
</html>

public/500.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3+
<html>
4+
<head>
5+
<title>Error 500</title>
6+
<link rel="stylesheet" href="/css/error.css" />
7+
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
8+
</head>
9+
<body>
10+
<h1>Error 500</h1>
11+
<div id="content">
12+
<h2>Internal Server Error</h2><p>Wooops, something went wrong</p>
13+
</div>
14+
<div id="footer">
15+
Powered by <a href="http://perldancer.org/">Dancer</a>.
16+
</div>
17+
</body>
18+
</html>

public/css/error.css

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
body {
2+
font-family: Lucida,sans-serif;
3+
}
4+
5+
h1 {
6+
color: #AA0000;
7+
border-bottom: 1px solid #444;
8+
}
9+
10+
h2 { color: #444; }
11+
12+
pre {
13+
font-family: "lucida console","monaco","andale mono","bitstream vera sans mono","consolas",monospace;
14+
font-size: 12px;
15+
border-left: 2px solid #777;
16+
padding-left: 1em;
17+
}
18+
19+
footer {
20+
font-size: 10px;
21+
}
22+
23+
span.key {
24+
color: #449;
25+
font-weight: bold;
26+
width: 120px;
27+
display: inline;
28+
}
29+
30+
span.value {
31+
color: #494;
32+
}
33+
34+
/* these are for the message boxes */
35+
36+
pre.content {
37+
background-color: #eee;
38+
color: #000;
39+
padding: 1em;
40+
margin: 0;
41+
border: 1px solid #aaa;
42+
border-top: 0;
43+
margin-bottom: 1em;
44+
}
45+
46+
div.title {
47+
font-family: "lucida console","monaco","andale mono","bitstream vera sans mono","consolas",monospace;
48+
font-size: 12px;
49+
background-color: #aaa;
50+
color: #444;
51+
font-weight: bold;
52+
padding: 3px;
53+
padding-left: 10px;
54+
}
55+
56+
pre.content span.nu {
57+
color: #889;
58+
margin-right: 10px;
59+
}
60+
61+
pre.error {
62+
background: #334;
63+
color: #ccd;
64+
padding: 1em;
65+
border-top: 1px solid #000;
66+
border-left: 1px solid #000;
67+
border-right: 1px solid #eee;
68+
border-bottom: 1px solid #eee;
69+
}
70+

0 commit comments

Comments
 (0)