module Orion::View
Direct including types
Defined in:
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
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