module Orion::Controller::Rendering

Overview

This module handles all rendering inside your controllers.

Direct including types

Defined in:

orion/controller/rendering.cr

Constructors

Macro Summary

Constructor Detail

def self.new(context, websocket = nil) #

[View source]

Macro Detail

macro layout(filename) #

[View source]
macro render(*, view, layout = true) #

Render a view


[View source]
macro render(*, partial) #

Render a view partial


[View source]
macro render(*, json) #

Render json


[View source]
macro render(*, text, content_type = "text/plain") #

Render plain text


[View source]