Skip to content

Instantly share code, notes, and snippets.

@9876691
Last active September 7, 2018 14:14
Show Gist options
  • Save 9876691/d93a933de0c83b2e61388a88e8c698a4 to your computer and use it in GitHub Desktop.
Save 9876691/d93a933de0c83b2e61388a88e8c698a4 to your computer and use it in GitHub Desktop.
abstract class GuestLayout
# Edit shared layout code in src/components/shared/layout.cr
include Shared::Layout
def render
html_doctype
html lang: "en" do
shared_layout_head
# Add a class to the body element.
body class: "authentication" do
# surround the content with a main element.
main do
render_flash
content
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment