IngotWeb.Layouts (Ingot v0.1.0)
View SourceThis module holds layouts and related functionality used by your application.
Summary
Functions
Renders your app layout.
Shows the flash group with standard titles and content.
Provides dark vs light theme toggle based on themes defined in app.css.
Functions
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".
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.