summaryrefslogtreecommitdiff
path: root/new/splash/pages/index.rb
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-12-27 00:16:14 +0100
committermms <git@sapka.me>2024-12-27 00:16:14 +0100
commitd3316d0b042ffa550ff56ed4e691c80003dd1414 (patch)
treededf93e497bb3c95b5f952a79b13dc89d3670fcf /new/splash/pages/index.rb
parent9ff71af752746fd4d61e7b5a1f025b1943f60dea (diff)
feat(new): server mode
Diffstat (limited to 'new/splash/pages/index.rb')
-rw-r--r--new/splash/pages/index.rb29
1 files changed, 29 insertions, 0 deletions
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
+ <h1><%= title %></h1>
+ <%= 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