module Amatista::ViewTag

Overview

Methods to create html tags using crystal

Included Modules

Direct including types

Defined in:

amatista/view/view_tag.cr

Instance Method Summary

Instance Method Detail

def check_box_tag(object_name, method, value = "1", checked = false, raw_options = [] of Hash(Symbol, String)) #

[View source]
def content_tag(tag, value, raw_options = [] of Hash(Symbol, String)) #

[View source]
def form_tag(url, method = "post", raw_options = [] of Hash(Symbol, String), &block) #

[View source]
def hidden_tag(object_name, method, value, raw_options = [] of Hash(Symbol, String)) #

[View source]
def label_tag(name, value, raw_options = [] of Hash(Symbol, String)) #

[View source]
def link_to(name, url, raw_options = [] of Hash(Symbol, String)) #

[View source]
def password_field(object_name, method, raw_options = [] of Hash(Symbol, String)) #

[View source]
def radio_button_tag(object_name, method, value = "1", checked = false, raw_options = [] of Hash(Symbol, String)) #

[View source]
def select_tag(object_name, method, collection, raw_options = [] of Hash(Symbol, String)) #

[View source]
def submit_tag(value = "Save", raw_options = [] of Hash(Symbol, String)) #

[View source]
def text_field(object_name, method, raw_options = [] of Hash(Symbol, String)) #

[View source]