From bcd3ac016e9ca3f655aaa4a95c466ddf45479cb1 Mon Sep 17 00:00:00 2001 From: "Philippe Bruhat (BooK)" Date: Wed, 17 Oct 2012 23:50:14 +0200 Subject: [PATCH 1/5] add a .html extension to /donate/thanks --- lib/PerlDancer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PerlDancer.pm b/lib/PerlDancer.pm index f20c777..c869763 100644 --- a/lib/PerlDancer.pm +++ b/lib/PerlDancer.pm @@ -15,7 +15,7 @@ get '/' => sub { }; }; -get '/donate/thanks' => sub { +get '/donate/thanks.html' => sub { template 'thanks'; }; From 3d6f75cb7896afc0ac4bb094c0514779d8c46fe5 Mon Sep 17 00:00:00 2001 From: "Philippe Bruhat (BooK)" Date: Wed, 17 Oct 2012 23:51:31 +0200 Subject: [PATCH 2/5] add a .html extension to /testimonials --- lib/PerlDancer.pm | 2 +- views/index.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PerlDancer.pm b/lib/PerlDancer.pm index c869763..5b7ef47 100644 --- a/lib/PerlDancer.pm +++ b/lib/PerlDancer.pm @@ -19,7 +19,7 @@ get '/donate/thanks.html' => sub { template 'thanks'; }; -get '/testimonials' => sub { +get '/testimonials.html' => sub { template 'testimonials-display', { testimonials => [ _get_testimonials() ] }; }; diff --git a/views/index.tt b/views/index.tt index 8763922..6c91621 100644 --- a/views/index.tt +++ b/views/index.tt @@ -228,7 +228,7 @@ ajax '/getloadavg' => sub {
-

What people say about Dancer...

+

What people say about Dancer...


From bb85777f6fb525685a094ab0a9624cbb73c08df2 Mon Sep 17 00:00:00 2001 From: "Philippe Bruhat (BooK)" Date: Wed, 17 Oct 2012 23:53:32 +0200 Subject: [PATCH 3/5] add a .html extension to most autopages --- lib/PerlDancer.pm | 5 +++++ public/404.html | 8 ++++---- public/500.html | 8 ++++---- views/about.tt | 4 ++-- views/contribute.tt | 4 ++-- views/documentation.tt | 2 +- views/download.tt | 2 +- views/includes/doc-list.tt | 2 +- views/layouts/main.tt | 10 +++++----- views/testimonials-display.tt | 2 +- 10 files changed, 26 insertions(+), 21 deletions(-) diff --git a/lib/PerlDancer.pm b/lib/PerlDancer.pm index 5b7ef47..074ee1a 100644 --- a/lib/PerlDancer.pm +++ b/lib/PerlDancer.pm @@ -28,6 +28,11 @@ get '/dancefloor' => sub { template 'dancefloor-display', { sites => _get_dancefloor_sites() }; }; +get qr{^/(irc|quickstart|documentation|about|contribute|cheatsheet|donate).html$} => sub { + my ($page) = splat; + forward "/$page"; # autopage +}; + # Add last tweet to template params hook before_template_render => sub { shift->{last_tweet} = latest_tweet(); diff --git a/public/404.html b/public/404.html index d70c678..e4e53d8 100644 --- a/public/404.html +++ b/public/404.html @@ -43,22 +43,22 @@

The easiest way to write web applications in Perl

diff --git a/public/500.html b/public/500.html index 8842f6a..79ec38a 100644 --- a/public/500.html +++ b/public/500.html @@ -43,22 +43,22 @@

The easiest way to write web applications in Perl

diff --git a/views/about.tt b/views/about.tt index 07736b6..7f25d8d 100644 --- a/views/about.tt +++ b/views/about.tt @@ -37,14 +37,14 @@ Search the mailing list:

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

You can also reach the development team on irc.perl.org, chan #dancer. If you don't have an IRC client available, you can -connect using Mibbit web IRC. +connect using Mibbit web IRC.