From 6fdbe8511c35945f2c912c042da6dc0aa5616360 Mon Sep 17 00:00:00 2001 From: swag Date: Sat, 4 Dec 2021 00:11:37 -0500 Subject: [PATCH] Initial commit++ --- LICENSE | 4 ++-- README.md | 8 +++++++- guestbook-ng.pl | 12 ++++++++++++ templates/index.html.ep | 3 +++ templates/layouts/default.html.ep | 9 +++++++++ 5 files changed, 33 insertions(+), 3 deletions(-) create mode 100755 guestbook-ng.pl create mode 100644 templates/index.html.ep create mode 100644 templates/layouts/default.html.ep diff --git a/LICENSE b/LICENSE index 0c97efd..82d91fc 100644 --- a/LICENSE +++ b/LICENSE @@ -219,8 +219,8 @@ If you develop a new program, and you want it to be of the greatest possible use To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - Copyright (C) + guestbook-ng: The future of guestbooks + Copyright (C) 2021 Daniel E Bowling This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. diff --git a/README.md b/README.md index d262a37..46c5303 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # guestbook-ng -The goal of guestbook-ng is to integrate across vendors and customers with full-service analytics insights by leveraging the latest in Perl Mojolicious blockchain technologies powered by AI. \ No newline at end of file +The goal of guestbook-ng is to integrate across vendors and customers +with full-service analytics insights by leveraging the latest in Perl +Mojolicious blockchain technologies powered by AI. + +## TODOs + +1. All of it diff --git a/guestbook-ng.pl b/guestbook-ng.pl new file mode 100755 index 0000000..a814223 --- /dev/null +++ b/guestbook-ng.pl @@ -0,0 +1,12 @@ +#!/usr/bin/env perl + +# Dec 2021 +# Daniel Bowling + +use Mojolicious::Lite -signatures; + +get '/' => sub ($c) { + $c->render(template => 'index'); +}; + +app->start(); diff --git a/templates/index.html.ep b/templates/index.html.ep new file mode 100644 index 0000000..01d2e39 --- /dev/null +++ b/templates/index.html.ep @@ -0,0 +1,3 @@ +% layout 'default'; +% title 'Welcome'; +

Welcome to the Mojolicious real-time web framework!

diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep new file mode 100644 index 0000000..fa73612 --- /dev/null +++ b/templates/layouts/default.html.ep @@ -0,0 +1,9 @@ + + + + <%= title %> + + +<%= content %> + +