Class: Monolith::Views::Layouts::Base
- Inherits:
-
Base
show all
- Defined in:
- app/views/monolith/layouts/base.rb
Instance Method Summary
collapse
Instance Method Details
#around_template ⇒ Object
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'app/views/monolith/layouts/base.rb', line 2
def around_template(&)
html do
head do
title { @title }
meta name: "viewport", content: "width=device-width,initial-scale=1"
meta charset: "utf-8"
meta name: "apple-mobile-web-app-capable", content: "yes"
meta name: "apple-mobile-web-app-status-bar-style", content: "black-translucent"
csp_meta_tag
csrf_meta_tags
stylesheet_link_tag "monolith/tailwind", data_turbo_track: "reload"
javascript_importmap_tags
end
body(&)
end
end
|
#view_template {|_self| ... } ⇒ Object
20
21
22
|
# File 'app/views/monolith/layouts/base.rb', line 20
def view_template
yield self if block_given?
end
|