From b85a577ec28abd49398f55fe2a7a538dad8eb2e8 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Thu, 14 Sep 2023 18:49:18 -0700 Subject: [PATCH] use render plugin to load erb html views --- app.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.rb b/app.rb index ae1a360..f437352 100644 --- a/app.rb +++ b/app.rb @@ -3,9 +3,10 @@ require 'securerandom' require 'json' class App < Roda + plugin :render, escape: true route do |r| r.root do - "this is the root" + view :home end r.get String do | url_code | @@ -13,7 +14,7 @@ class App < Roda end r.post "create" do - + view :create end end end