From d3316d0b042ffa550ff56ed4e691c80003dd1414 Mon Sep 17 00:00:00 2001 From: mms Date: Fri, 27 Dec 2024 00:16:14 +0100 Subject: feat(new): server mode --- new/splash/pages/index.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 new/splash/pages/index.rb (limited to 'new/splash/pages/index.rb') diff --git a/new/splash/pages/index.rb b/new/splash/pages/index.rb new file mode 100644 index 0000000..b9772d8 --- /dev/null +++ b/new/splash/pages/index.rb @@ -0,0 +1,29 @@ +require_relative "../lib/theme.rb" + +module Crys + module Splash + class IndexPage < Theme + BODY = ERB.new <<-EOF +

<%= title %>

+ <%= name %> + EOF + + DATA = { + title: "A page", + name: "A name" + } + + PAGE = "index.erb" + + # filename + # other embbeds + # from .erb file + # from .org file + + + + end + end +end + +p Crys::Splash::IndexPage.new.render -- cgit v1.2.3