Sha256: dc09ffc9cf77ad233d9f7641e15589b7013f0322004f1875691799bed8556c29
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
# encoding: utf-8 module Sinatra module InputHelper 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 InputHelper end
Version data entries
4 entries across 4 versions & 1 rubygems