class UI::ScreenContext::Web

Overview

Web-target concrete ScreenContext. Wraps the scalar/multi params, the flash messages, the design-token bundle, and the CSRF token extracted from the request via Amber's CSRF helper.

Defined in:

asset_pipeline/amber_integration.cr

Constructors

Instance Method Summary

Instance methods inherited from class UI::ScreenContext

csrf_token : String | Nil csrf_token, design_tokens : UI::DesignTokens::Tokens design_tokens, flash_data : Hash(String, String) flash_data, params : Hash(String, String) params, params_multi : Hash(String, Array(String)) params_multi

Constructor Detail

def self.new(params : Hash(String, String), params_multi : Hash(String, Array(String)), flash_data : Hash(String, String), design_tokens : UI::DesignTokens::Tokens, csrf_token : String | Nil) #

[View source]

Instance Method Detail

def csrf_token : String | Nil #

[View source]
def design_tokens : UI::DesignTokens::Tokens #

[View source]
def flash_data : Hash(String, String) #

[View source]
def params : Hash(String, String) #

[View source]
def params_multi : Hash(String, Array(String)) #

[View source]