Sha256: bd2c381f397fe5662486cbfd453404a9b5eca27ae1ac5d4d0bcecb77c04b7c8d
Contents?: true
Size: 515 Bytes
Versions: 7
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true # Add a text-field, either specifying everything manually or using a model object on the form # # == Basic usage: # {%hidden_field name:"name" value:"Pencil"%} # # == Advanced usage: # {%hidden_field name%} # # This last usage requires a model on the form # require_relative './text_field_tag' class HiddenFieldTag < TextFieldTag def initialize(tag, args, tokens) super @field_type = 'hidden' end end Liquid::Template.register_tag('hidden_field', HiddenFieldTag)
Version data entries
7 entries across 7 versions & 1 rubygems