Sha256: 70ffd2eb7542ee12bf53534e3c70f2e501ea9075b485eab23fb53324d13e3983
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
# encoding: utf-8 module Sinatra module InputHandler extend Hexacta def date_input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/date".to_sym, locals: option_hash end def input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/input".to_sym, locals: option_hash end def month_input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/month".to_sym, locals: option_hash end def multiple_select_input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/multiple_select".to_sym, locals: option_hash end def radio_input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/radio".to_sym, locals: option_hash end def select_input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/select".to_sym, locals: option_hash end def textarea_input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/textarea".to_sym, locals: option_hash end def tick_input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/tick".to_sym, locals: option_hash end def year_input(option_hash) slim "#{Hexacta::GEM_FILE_DIR}/inputs/year".to_sym, locals: option_hash end setup_dir("/app/views/#{Hexacta::GEM_FILE_DIR}/inputs") symlink_all("/lib/sinatra/views/inputs","/app/views/#{Hexacta::GEM_FILE_DIR}/inputs") end helpers InputHandler end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-hexacta-0.0.2 | lib/sinatra/helpers/inputs.rb |
sinatra-hexacta-0.0.1 | lib/sinatra/helpers/inputs.rb |