blob: 6c2b9142999426ee80f8881737e05a86d53b7686 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
Justicar::PreProcessor.articles ||= {} # ensure the has exists
# assign the result to a hash to be generated later
Justicar::PreProcessor.articles["lion.html"] = Paggio.html! do
h2 do
"This is an article about LIONS!"
end
end
def event_card(title, description, image = nil)
Paggio.html! do
div.card do
div.top_card do
div.title_card do
title
end
div.background_image_card do
div.image_card(style: "background-image: url('#{image}');") do
end
end
end
div.bottom_card do
div.content_card do
description
end
end
end
end
end
|