From 47de2860ab9072570f30b6264189872a6fc7c7d7 Mon Sep 17 00:00:00 2001 From: James Dinkel Date: Tue, 26 Dec 2023 17:57:27 -0600 Subject: [PATCH] Simple single file app. --- README.md | 1 + config.ru | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 config.ru diff --git a/README.md b/README.md index 88edeb7..3f7db1c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # roda-templates +Install prereq: sudo apt install puma, sudo gem install roda --no-document diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..77fc7ae --- /dev/null +++ b/config.ru @@ -0,0 +1,15 @@ +require 'roda' + +class App < Roda + route do |r| + r.root do + "

Hello, World!

" + end + + r.is String do |name| + "

Hello, #{name.capitalize}!

" + end + end +end + +run App