module Orion::View

Direct including types

Defined in:

orion/view.cr
orion/view/asset_tag_helpers.cr

Macro Summary

Macro Detail

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

Define a layout to be used within the controller


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

Render a view


[View source]
macro view_helper(mod) #

Include a helper module in the view Use this to add helpers to a view from a module


[View source]
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


[View source]