module Orion::View

Direct including types

Defined in:

Macro Summary

Macro Detail

macro layout(filename, *, locals = NamedTuple.new) #

Define a layout to be used within the controller


macro render(*, view = @def.name, layout = true, locals = NamedTuple.new, layout_locals = nil) #

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