module AsplesSinatra::Helpers
Public Instance Methods
input(name, options={})
click to toggle source
# File lib/asples_sinatra/helpers.rb, line 3 def input(name, options={}) template_path = File.join(File.dirname(File.expand_path(__FILE__)), '/templates/input.haml') tmpl = Tilt.new(template_path) tmpl.render(self, options.merge!({field_name: name})) end