module FoxPage::Helpers::RenderHelper
Public Instance Methods
render(view, params = {})
click to toggle source
# File lib/fox_page/helpers/render_helper.rb, line 6 def render(view, params = {}) full_path = Dir.glob(app.root.join("app/views/#{view}.*")).first unless full_path raise ArgumentError, "Could not find template for #{view}" end Tilt.new(full_path).render(self, params) end