Class: SelectTag
- Inherits:
-
LiquidumBlock
- Object
- LiquidumBlock
- SelectTag
- Defined in:
- lib/scribo/liquid/tags/select_tag.rb
Overview
Adds a (by default submit) button
Basic usage:
{%select name:'group'%}{%endselect%}
Advanced usage:
{%select group%}{%endselect%}
Instance Method Summary collapse
Instance Method Details
#render(context) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/scribo/liquid/tags/select_tag.rb', line 12 def render(context) super %[<select] + attr_str(:name, arg(:name), input(:name, argv1)) + attr_str(:id, arg(:id), input(:id, argv1)) + attrs_str(reject: %[name id]) + %[>] + render_body + %[</select>] end |