summaryrefslogtreecommitdiffhomepage
path: root/template/src/articles/crab.pre.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-04-22 07:17:49 -0400
committerrealtradam <[email protected]>2022-04-22 07:17:49 -0400
commit99099c284982863480ffc6d4aa741d29dc2ea92a (patch)
tree66a2f4c543617f647d970db6fce07622feafd393 /template/src/articles/crab.pre.rb
parent6150ed8ba86e960a2833b4000c2f9474a2292129 (diff)
downloadJusticar-99099c284982863480ffc6d4aa741d29dc2ea92a.tar.gz
Justicar-99099c284982863480ffc6d4aa741d29dc2ea92a.zip
version 1.0v1.0.0
Diffstat (limited to 'template/src/articles/crab.pre.rb')
-rw-r--r--template/src/articles/crab.pre.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/template/src/articles/crab.pre.rb b/template/src/articles/crab.pre.rb
new file mode 100644
index 0000000..e306ae1
--- /dev/null
+++ b/template/src/articles/crab.pre.rb
@@ -0,0 +1,8 @@
+Justicar::PreProcessor.articles ||= {} # ensure the has exists
+
+# assign the result to a hash to be generated later
+Justicar::PreProcessor.articles["crab.html"] = Paggio.html! do
+ h2 do
+ "This is an article about CRABS!"
+ end
+end