blob: 7d386c26cb31e01ebce015c85ec1f2b2fcdb0fff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require "./template-html"
class Guff::Views::PageView < Guff::Views::TemplateHTMLView
def initialize(context : Context, @item : Hash(String, String))
super(
context: context,
theme_id: @item["active_theme_id"].not_nil!.to_i32 as Int32,
theme_slug: @item["active_theme_slug"].not_nil!.to_s as String,
template_id: "page.html",
data: @item,
extra_assets: context.models.page.assets(@item["post_id"].to_i64) as Theme::Assets,
)
end
end
|