GustWeb.Layouts (gust_web v0.1.26)
This module holds layouts and related functionality used by your application.
Summary
Functions
Provides dark vs light theme toggle based on themes defined in app.css.
Renders your app layout.
Shows the flash group with standard titles and content.
Functions
Provides dark vs light theme toggle based on themes defined in app.css.
See <head> in root.html.heex which applies the theme before page load.
Renders your app layout.
This function is typically invoked from every template, and it often contains your application menu, sidebar, or similar.
Examples
<Layouts.app flash={@flash}>
<h1>Content</h1>
</Layouts.app>Attributes
flash(:map) (required) - the map of flash messages.current_scope(:map) - the current scope. Defaults tonil.
Slots
inner_block(required)
Shows the flash group with standard titles and content.
Examples
<.flash_group flash={@flash} />Attributes
flash(:map) (required) - the map of flash messages.id(:string) - the optional id of flash container. Defaults to"flash-group".