Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static version of the PerlDancer website (using Wallflower) #24

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions lib/PerlDancer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,30 @@ get '/' => sub {
};
};

get '/donate/thanks' => sub {
get '/donate/thanks.html' => sub {
template 'thanks';
};

get '/testimonials' => sub {
get '/testimonials.html' => sub {
template 'testimonials-display', { testimonials => [ _get_testimonials() ] };
};

get '/dancefloor' => sub {
get '/dancefloor.html' => sub {
my $sites = _get_dancefloor_sites();
template 'dancefloor-display', { sites => _get_dancefloor_sites() };
};

get qr{^/(irc|quickstart|documentation|about|contribute|cheatsheet|donate).html$} => sub {
my ($page) = splat;
forward "/$page"; # autopage
};

get '/slides/' => sub {
my $res = Dancer::Renderer::_autopage_response( Dancer::FileUtils::path( 'slides' ) );
$res->header( 'Content-Type' => 'text/html' );
$res;
};

# Add last tweet to template params
hook before_template_render => sub {
shift->{last_tweet} = latest_tweet();
Expand Down
10 changes: 5 additions & 5 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ <h2>The easiest way to write web applications in Perl</h2>

<!-- START NAV LEFT -->
<ul id="nav-left" class="clearme listreset">
<li><a href="/quickstart">Quick Start</a></li>
<li><a href="/quickstart.html">Quick Start</a></li>
<li class="nav-sep"></li>

<li><a href="/documentation">Documentation</a></li>
<li><a href="/documentation.html">Documentation</a></li>
</ul>
<!-- END NAV LEFT -->

<!-- START NAV RIGHT -->
<ul id="nav-right" class="clearme listreset">
<li><a href="/contribute">Contribute</a></li>
<li><a href="/contribute.html">Contribute</a></li>
<li class="nav-sep"></li>

<li><a href="/dancefloor">Dancers</a></li>
<li><a href="/dancefloor.html">Dancers</a></li>
<li class="nav-sep"></li>

<li><a href="/about">About</a></li>
<li><a href="/about.html">About</a></li>
</ul>
<!-- END NAV RIGHT -->

Expand Down
10 changes: 5 additions & 5 deletions public/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ <h2>The easiest way to write web applications in Perl</h2>

<!-- START NAV LEFT -->
<ul id="nav-left" class="clearme listreset">
<li><a href="/quickstart">Quick Start</a></li>
<li><a href="/quickstart.html">Quick Start</a></li>
<li class="nav-sep"></li>

<li><a href="/documentation">Documentation</a></li>
<li><a href="/documentation.html">Documentation</a></li>
</ul>
<!-- END NAV LEFT -->

<!-- START NAV RIGHT -->
<ul id="nav-right" class="clearme listreset">
<li><a href="/contribute">Contribute</a></li>
<li><a href="/contribute.html">Contribute</a></li>
<li class="nav-sep"></li>

<li><a href="/dancefloor">Dancers</a></li>
<li><a href="/dancefloor.html">Dancers</a></li>
<li class="nav-sep"></li>

<li><a href="/about">About</a></li>
<li><a href="/about.html">About</a></li>
</ul>
<!-- END NAV RIGHT -->

Expand Down
4 changes: 2 additions & 2 deletions views/about.tt
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ Search the mailing list: <input type=text name="q" size=20 value=""/>

<p>
It's also possible to use GitHub to submit a patch, see the <a
href="/contribute">contribute</a> page for more details about collaborating in
href="/contribute.html">contribute</a> page for more details about collaborating in
Dancer development.
</p>

<p>
You can also reach the development team on <code>irc.perl.org</code>,
chan <code>#dancer</code>. If you don't have an IRC client available, you can
<a href="/irc">connect using Mibbit web IRC</a>.
<a href="/irc.html">connect using Mibbit web IRC</a>.
</p>

<script type="text/javascript">
Expand Down
10 changes: 5 additions & 5 deletions views/contribute.tt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p>
Dancer is a modern Perl project - it's already in use in many production
deployments (see the <a href="/dancefloor">Dancefloor</a> page for some
deployments (see the <a href="/dancefloor.html">Dancefloor</a> page for some
examples) but is still being actively developed and improved.
</p>

Expand All @@ -27,7 +27,7 @@ Ratings</a></li>
<li><a href="https://github.com/sukria/Dancer">&quot;Watch&quot; the project on
GitHub</a></li>
<li>Dancer-related presentations at conferences etc (see the <a
href="/slides">slides page</a> for inspiration)
href="/slides/">slides page</a> for inspiration)
</ul>

<p>
Expand All @@ -45,7 +45,7 @@ commit some ideas to the crew.

<p>
If you're using Dancer, please feel free to let us know so we can list you on
the <a href="/dancefloor">Dancefloor page</a>!
the <a href="/dancefloor.html">Dancefloor page</a>!
</p>


Expand All @@ -54,7 +54,7 @@ the <a href="/dancefloor">Dancefloor page</a>!

<p>
We have a thriving community in <tt>#dancer</tt> on <tt>irc.perl.org</tt>.
<a href="/irc">Come join us now</a> and get help, offer feedback, help new
<a href="/irc.html">Come join us now</a> and get help, offer feedback, help new
users...
</p>

Expand Down Expand Up @@ -105,7 +105,7 @@ track and apply, and thus have a much better chance of being applied!)
<h3>Donate</h3>

<p>
If you want to support the team, you can also <a href="/donate">donate</a> -
If you want to support the team, you can also <a href="/donate.html">donate</a> -
donations will be used to support development efforts, for instance paying for
travel to conferences etc.
</p>
Expand Down
2 changes: 1 addition & 1 deletion views/documentation.tt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ in order to provide working configuration examples.

<p>
Even though special care is given to documentation, there might be some
errors, so feel free to <a href="/about">contact the development team</a> if
errors, so feel free to <a href="/about.html">contact the development team</a> if
you find any.
</p>
2 changes: 1 addition & 1 deletion views/download.tt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Or even <a href="http://github.com/sukria/Dancer/toggle_watch">follow the Dancer
</p>

<p>
Find details about bug reports and patch submission <a href="/contribute">there</a>.
Find details about bug reports and patch submission <a href="/contribute.html">there</a>.
</p>
2 changes: 1 addition & 1 deletion views/includes/doc-list.tt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ul>
<li><a href="/cheatsheet">A cheatsheet</a> (PDF or ODS) by Vladimir Lettiev
<li><a href="/cheatsheet.html">A cheatsheet</a> (PDF or ODS) by Vladimir Lettiev
(thecrux)</li>
<li><a href="http://p3rl.org/Dancer::Introduction">Dancer::Introduction</a>
- a gentle introduction to Dancer</li>
Expand Down
2 changes: 1 addition & 1 deletion views/index.tt
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ ajax '/getloadavg' => sub {

<div id="testimonials" style="">

<h3><a href="/testimonials">What people say about Dancer</a>...</h3>
<h3><a href="/testimonials.html">What people say about Dancer</a>...</h3>

<br clear="both" />
<!-- adjust height of this div to fit longest quote -->
Expand Down
14 changes: 7 additions & 7 deletions views/layouts/main.tt
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,25 @@

<!-- START NAV LEFT -->
<ul id="nav-left" class="clearme listreset">
<li><a href="/quickstart" title="Get started quickly">Quick Start</a></li>
<li><a href="/quickstart.html" title="Get started quickly">Quick Start</a></li>
<li class="nav-sep"></li>
<li><a href="/documentation" title="Documentation">Docs</a></li>
<li><a href="/documentation.html" title="Documentation">Docs</a></li>
<li class="nav-sep"></li>
<li><a href="/about" title="About the Dancer framework">About</a><li>
<li><a href="/about.html" title="About the Dancer framework">About</a><li>
<li class="nav-sep"></li>
<li><a href="/irc" title="Talk to us on IRC">IRC</a></li>
<li><a href="/irc.html" title="Talk to us on IRC">IRC</a></li>
</ul>
<!-- END NAV LEFT -->

<!-- START NAV RIGHT -->
<ul id="nav-right" class="clearme listreset">
<li><a href="/contribute" title="Contributing to the project">Contribute</a></li>
<li><a href="/contribute.html" title="Contributing to the project">Contribute</a></li>
<li class="nav-sep"></li>

<li><a href="/dancefloor" title="Who's using Dancer">Dancers</a></li>
<li><a href="/dancefloor.html" title="Who's using Dancer">Dancers</a></li>
<li class="nav-sep"></li>

<li><a href="/slides" title="Presentation slides">Slides</a></li>
<li><a href="/slides/" title="Presentation slides">Slides</a></li>
</ul>
<!-- END NAV RIGHT -->

Expand Down
2 changes: 1 addition & 1 deletion views/testimonials-display.tt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
<h3>What do <strong>you</strong> think?</h3>

<p>
We'd love to hear what you think of Dancer! Let us know, <a href="/irc">via
We'd love to hear what you think of Dancer! Let us know, <a href="/irc.html">via
IRC</a>, on the mailing list, by smoke signals - whatever you like!
</p>