diff options
Diffstat (limited to 'src/components/shared/layout_head.cr')
-rw-r--r-- | src/components/shared/layout_head.cr | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/shared/layout_head.cr b/src/components/shared/layout_head.cr new file mode 100644 index 0000000..5a05331 --- /dev/null +++ b/src/components/shared/layout_head.cr @@ -0,0 +1,18 @@ +class Shared::LayoutHead < BaseComponent + needs page_title : String + + def render + head do + utf8_charset + title "My App - #{@page_title}" + css_link asset("css/app.css") + js_link asset("js/app.js"), defer: "true" + csrf_meta_tags + responsive_meta_tag + + # Development helper used with the `lucky watch` command. + # Reloads the browser when files are updated. + live_reload_connect_tag if LuckyEnv.development? + end + end +end |