module Ktistec::Controller

Direct including types

Defined in:

framework/controller.cr

Constant Summary

VIEWS = {"_view_src_views_pages_generic_html_slang_layout_src_views_layouts_default_html_ecr" => {env, message, "src/views/pages/generic.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_activities_activity_json_ecr" => {env, activity, recursive, "src/views/activities/activity.json.ecr", nil}, "_view_src_views_actors_actor_json_ecr" => {env, actor, "src/views/actors/actor.json.ecr", nil}, "_view_src_views_actors_actor_html_slang_layout_src_views_layouts_default_html_ecr" => {env, actor, "src/views/actors/actor.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_actors_public_posts_json_ecr" => {env, actor, objects, "src/views/actors/public_posts.json.ecr", nil}, "_view_src_views_actors_public_posts_html_slang_layout_src_views_layouts_default_html_ecr" => {env, actor, objects, "src/views/actors/public_posts.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_actors_posts_json_ecr" => {env, actor, objects, "src/views/actors/posts.json.ecr", nil}, "_view_src_views_actors_posts_html_slang_layout_src_views_layouts_default_html_ecr" => {env, actor, objects, "src/views/actors/posts.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_actors_timeline_json_ecr" => {env, actor, timeline, "src/views/actors/timeline.json.ecr", nil}, "_view_src_views_actors_timeline_html_slang_layout_src_views_layouts_default_html_ecr" => {env, actor, timeline, "src/views/actors/timeline.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_actors_notifications_json_ecr" => {env, account, actor, notifications, "src/views/actors/notifications.json.ecr", nil}, "_view_src_views_actors_notifications_html_slang_layout_src_views_layouts_default_html_ecr" => {env, account, actor, notifications, "src/views/actors/notifications.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_objects_index_json_ecr" => {env, drafts, "src/views/objects/index.json.ecr", nil}, "_view_src_views_objects_index_html_slang_layout_src_views_layouts_default_html_ecr" => {env, drafts, "src/views/objects/index.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_actors_remote_json_ecr" => {env, actor, "src/views/actors/remote.json.ecr", nil}, "_view_src_views_actors_remote_html_slang_layout_src_views_layouts_default_html_ecr" => {env, actor, "src/views/actors/remote.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_everything_index_json_ecr" => {env, collection, "src/views/everything/index.json.ecr", nil}, "_view_src_views_everything_index_html_slang_layout_src_views_layouts_default_html_ecr" => {env, collection, "src/views/everything/index.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_filters_index_json_ecr" => {env, terms, "src/views/filters/index.json.ecr", nil}, "_view_src_views_filters_index_html_slang_layout_src_views_layouts_default_html_ecr" => {env, terms, "src/views/filters/index.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_filters_form_json_ecr" => {env, term, "src/views/filters/form.json.ecr", nil}, "_view_src_views_filters_form_html_slang_layout_src_views_layouts_default_html_ecr" => {env, term, "src/views/filters/form.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_home_step_1_json_ecr" => {env, settings, "src/views/home/step_1.json.ecr", nil}, "_view_src_views_home_step_1_html_slang_layout_src_views_layouts_default_html_ecr" => {env, settings, "src/views/home/step_1.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_home_step_2_json_ecr" => {env, account, actor, "src/views/home/step_2.json.ecr", nil}, "_view_src_views_home_step_2_html_slang_layout_src_views_layouts_default_html_ecr" => {env, account, actor, "src/views/home/step_2.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_home_index_json_ecr" => {env, accounts, objects, "src/views/home/index.json.ecr", nil}, "_view_src_views_home_index_html_slang_layout_src_views_layouts_default_html_ecr" => {env, accounts, objects, "src/views/home/index.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_relationships_inbox_json_ecr" => {env, account, activities, "src/views/relationships/inbox.json.ecr", nil}, "_view_src_views_relationships_inbox_html_slang_layout_src_views_layouts_default_html_ecr" => {env, account, activities, "src/views/relationships/inbox.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_interactions_index_json_ecr" => {env, message, error, target, action, domain, "src/views/interactions/index.json.ecr", nil}, "_view_src_views_interactions_index_html_slang_layout_src_views_layouts_default_html_ecr" => {env, message, error, target, action, domain, "src/views/interactions/index.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_objects_object_json_ecr" => {env, object, recursive, "src/views/objects/object.json.ecr", nil}, "_view_src_views_objects_object_html_slang_layout_src_views_layouts_default_html_ecr" => {env, object, recursive, "src/views/objects/object.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_mentions_index_json_ecr" => {env, mention, collection, count, follow, "src/views/mentions/index.json.ecr", nil}, "_view_src_views_mentions_index_html_slang_layout_src_views_layouts_default_html_ecr" => {env, mention, collection, count, follow, "src/views/mentions/index.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_metrics_metrics_json_ecr" => {env, charts, range, granularity, labels, "src/views/metrics/metrics.json.ecr", nil}, "_view_src_views_metrics_metrics_html_slang_layout_src_views_layouts_default_html_ecr" => {env, charts, range, granularity, labels, "src/views/metrics/metrics.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_partials_editor_json_ecr" => {env, object, recursive, "src/views/partials/editor.json.ecr", nil}, "_view_src_views_partials_editor_html_slang" => {env, object, recursive, "src/views/partials/editor.html.slang", nil}, "_view_src_views_objects_replies_json_ecr" => {env, object, replies, recursive, "src/views/objects/replies.json.ecr", nil}, "_view_src_views_objects_thread_json_ecr" => {env, object, thread, follow, task, "src/views/objects/thread.json.ecr", nil}, "_view_src_views_objects_thread_html_slang_layout_src_views_layouts_default_html_ecr" => {env, object, thread, follow, task, "src/views/objects/thread.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_objects_edit_json_ecr" => {env, object, recursive, "src/views/objects/edit.json.ecr", nil}, "_view_src_views_objects_edit_html_slang_layout_src_views_layouts_default_html_ecr" => {env, object, recursive, "src/views/objects/edit.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_objects_reply_html_slang_layout_src_views_layouts_default_html_ecr" => {env, object, "src/views/objects/reply.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_partials_editor_html_slang_layout_src_views_layouts_default_html_ecr" => {env, object, recursive, "src/views/partials/editor.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_relationships_outbox_json_ecr" => {env, activities, "src/views/relationships/outbox.json.ecr", nil}, "_view_src_views_relationships_outbox_html_slang_layout_src_views_layouts_default_html_ecr" => {env, activities, "src/views/relationships/outbox.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_relationships_actors_json_ecr" => {env, related, "src/views/relationships/actors.json.ecr", nil}, "_view_src_views_relationships_actors_html_slang_layout_src_views_layouts_default_html_ecr" => {env, related, "src/views/relationships/actors.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_relationships_objects_json_ecr" => {env, objects, "src/views/relationships/objects.json.ecr", nil}, "_view_src_views_relationships_objects_html_slang_layout_src_views_layouts_default_html_ecr" => {env, objects, "src/views/relationships/objects.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_searches_actor_json_ecr" => {env, actor, message, query, "src/views/searches/actor.json.ecr", nil}, "_view_src_views_searches_actor_html_slang_layout_src_views_layouts_default_html_ecr" => {env, actor, message, query, "src/views/searches/actor.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_searches_object_json_ecr" => {env, object, message, query, "src/views/searches/object.json.ecr", nil}, "_view_src_views_searches_object_html_slang_layout_src_views_layouts_default_html_ecr" => {env, object, message, query, "src/views/searches/object.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_searches_form_json_ecr" => {env, message, query, "src/views/searches/form.json.ecr", nil}, "_view_src_views_searches_form_html_slang_layout_src_views_layouts_default_html_ecr" => {env, message, query, "src/views/searches/form.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_sessions_new_json_ecr" => {env, message, username, password, "src/views/sessions/new.json.ecr", nil}, "_view_src_views_sessions_new_html_slang_layout_src_views_layouts_default_html_ecr" => {env, message, username, password, "src/views/sessions/new.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_settings_settings_json_ecr" => {env, account, actor, settings, "src/views/settings/settings.json.ecr", nil}, "_view_src_views_settings_settings_html_slang_layout_src_views_layouts_default_html_ecr" => {env, account, actor, settings, "src/views/settings/settings.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_system_index_json_ecr" => {env, log_levels, sources, "src/views/system/index.json.ecr", nil}, "_view_src_views_system_index_html_slang_layout_src_views_layouts_default_html_ecr" => {env, log_levels, sources, "src/views/system/index.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_tags_index_json_ecr" => {env, hashtag, collection, count, follow, task, "src/views/tags/index.json.ecr", nil}, "_view_src_views_tags_index_html_slang_layout_src_views_layouts_default_html_ecr" => {env, hashtag, collection, count, follow, task, "src/views/tags/index.html.slang", "src/views/layouts/default.html.ecr"}, "_view_src_views_tasks_index_json_ecr" => {env, tasks, "src/views/tasks/index.json.ecr", nil}, "_view_src_views_tasks_index_html_slang_layout_src_views_layouts_default_html_ecr" => {env, tasks, "src/views/tasks/index.html.slang", "src/views/layouts/default.html.ecr"}} of String => ::Tuple(String, String, String | ::Nil)

Macro Summary

Macro Detail

macro _created(_message = "Created", _status_code = 201, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]
macro accepts?(*mime_type) #

[View source]
macro bad_gateway(_message = "Bad Gateway", _status_code = 502, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]
macro bad_request(_message = "Bad Request", _status_code = 400, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]
macro conflict(_message = "Conflict", _status_code = 409, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]
macro created(url, *args, **opts) #

[View source]
macro def_response_helper(name, status_message, status_code) #

Define a simple response helper.


[View source]
macro forbidden(_message = "Forbidden", _status_code = 403, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]
macro in_turbo_frame? #

[View source]
macro no_content(_message = "No Content", _status_code = 204, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]
macro not_found(_message = "Not Found", _status_code = 404, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]
macro ok(_message = "OK", _status_code = 200, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]
macro redirect(url, status_code = 302) #

Redirect and end processing.


[View source]
macro register_view(key, view, layout = nil, **opts) #

[View source]
macro server_error(_message = "Server Error", _status_code = 500, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]
macro skip_auth(paths, method = GET, *methods) #

Don't authenticate specified handlers.

Use at the beginning of a controller.

skip_auth ["/foo", "/bar"], GET, POST

Defaults to GET if no other method is specified. Automatically includes HEAD if GET is specified.


[View source]
macro unprocessable_entity(_message = "Unprocessable Entity", _status_code = 422, _basedir = "src/views", _operation = nil, _target = nil, **opts) #

[View source]