module MasterView module Directives class Hidden_field < MasterView::DirectiveBase def stag(dcs) #eat end def etag(dcs) args = parse_attr_value obj = args[0] method = args[1] obj = quote(obj) unless obj =~ /^:|'|"/ method = quote(method) unless method =~ /^:|'|"/ options = {} options.merge! common_html_options(attrs_lck) remove_strings_from_attr_value! merge_hash_attr_value!(0, options) a = [] a << 'hidden_field '+ obj a << method a << attr_value unless attr_value.strip.empty? erb_content(a.join(', ')) end end end end