module Orion::View
Direct including types
Defined in:
orion/view.crorion/view/asset_tag_helpers.cr
Macro Summary
-
layout(filename, *, locals = NamedTuple.new)
Define a layout to be used within the controller
-
render(*, view = @def.name, layout = true, locals = NamedTuple.new, layout_locals = nil)
Render a view
-
view_helper(mod)
Include a helper module in the view Use this to add helpers to a view from a module
-
view_helper(&block)
A block that can be read by the view.
Macro Detail
macro layout(filename, *, locals = NamedTuple.new)
#
Define a layout to be used within the controller
Render a view
macro view_helper(mod)
#
Include a helper module in the view Use this to add helpers to a view from a module
macro view_helper(&block)
#
A block that can be read by the view. Use this to define methods that can be accessed by the view