summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Static.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-22 16:56:49 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-22 16:56:49 +0100
commit32cc2f0f81c45e913d2cf44524a7676315719549 (patch)
tree806d9beba2c0e05c90cabcbd99bf683fee240b5a /lib/Travelynx/Controller/Static.pm
parent0243a114b43c9c533a99c7f562c0e57d3a66671f (diff)
More refactoring
Diffstat (limited to 'lib/Travelynx/Controller/Static.pm')
-rw-r--r--lib/Travelynx/Controller/Static.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Static.pm b/lib/Travelynx/Controller/Static.pm
new file mode 100644
index 0000000..aa3428e
--- /dev/null
+++ b/lib/Travelynx/Controller/Static.pm
@@ -0,0 +1,18 @@
+package Travelynx::Controller::Static;
+use Mojo::Base 'Mojolicious::Controller';
+
+my $travelynx_version = qx{git describe --dirty} || 'experimental';
+
+sub about {
+ my ($self) = @_;
+
+ $self->render( 'about', version => $travelynx_version );
+}
+
+sub imprint {
+ my ($self) = @_;
+
+ $self->render('imprint');
+}
+
+1;