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