class Marten::Template::Tag::MethodInput

Overview

The method_input template tag.

The method_input template tag generates a hidden HTML input field for simulating HTTP methods in forms. This tag takes a single argument specifying the desired HTTP method (e.g., "DELETE", "PUT").

Included Modules

Defined in:

marten/template/tag/method_input.cr

Constructors

Instance Method Summary

Instance methods inherited from module Marten::Template::Tag::CanSplitSmartly

split_smartly(expression : String) : Array(String) split_smartly

Instance methods inherited from class Marten::Template::Tag::Base

render(context : Context) : String render

Constructor methods inherited from class Marten::Template::Tag::Base

new(parser : Parser, source : String) new

Constructor Detail

def self.new(parser : Parser, source : String) #

[View source]

Instance Method Detail

def render(context : Context) : String #
Description copied from class Marten::Template::Tag::Base

Render the template tag for a given context.


[View source]