Module: Ki::Middleware::Helpers::View
Instance Method Summary collapse
Instance Method Details
#view_exists?(path) ⇒ Boolean
7 8 9 10 |
# File 'lib/ki/middleware/helpers/view_helper.rb', line 7 def view_exists?(path) path = path.path if path.class == BaseRequest File.file?(view_path(path)) end |
#view_path(path) ⇒ Object
12 13 14 15 |
# File 'lib/ki/middleware/helpers/view_helper.rb', line 12 def view_path(path) path = path.path if path.class == BaseRequest File.join(Ki::VIEWS_PATH, path + '.haml') end |