From 30ea917a38ba6b1c7ecdd1efb688b556ae6caae1 Mon Sep 17 00:00:00 2001 From: Guilherme Carreiro Date: Fri, 20 Sep 2024 12:55:16 +0200 Subject: [PATCH] Demo --- Gemfile | 4 ++ Gemfile.lock | 2 + example/server/templates/index.liquid | 73 +++++++++++++++++++++++++-- 3 files changed, 76 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 509316c1..ce499d64 100644 --- a/Gemfile +++ b/Gemfile @@ -28,3 +28,7 @@ group :test do gem 'liquid-c', github: 'Shopify/liquid-c', ref: 'main' end end + +group :development do + gem "webrick" +end diff --git a/Gemfile.lock b/Gemfile.lock index 61acc767..eff33ff5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,6 +53,7 @@ GEM terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) unicode-display_width (2.5.0) + webrick (1.8.1) PLATFORMS ruby @@ -70,6 +71,7 @@ DEPENDENCIES rubocop-shopify (~> 2.12.0) stackprof terminal-table + webrick BUNDLED WITH 2.5.7 diff --git a/example/server/templates/index.liquid b/example/server/templates/index.liquid index 4872aa84..d0f6730a 100644 --- a/example/server/templates/index.liquid +++ b/example/server/templates/index.liquid @@ -1,6 +1,73 @@ -

Hello world!

+ + -

It is {{date}}

+ + + + Simple Code Editor + + + + + + + + + +
+ {% snippet "main" %} + + {% # Snippet input %} + {% snippet "input" %} + + + {% endsnippet %} -

Check out the Products screen

+ {% # Snippet banner %} + {% snippet "banner" %} + + Welcome to my store! + + {% endsnippet %} + + {% render 'input' %} + {% render 'input' %} + {% render 'banner' %} + + {% endsnippet %} + {% render 'main' %} +
+ + + + + +