Module: Hyper::Utils

Extended by:
Utils
Included in:
Utils
Defined in:
lib/hyper/utils.rb

Instance Method Summary collapse

Instance Method Details

#layout_pathObject



5
6
7
# File 'lib/hyper/utils.rb', line 5

def layout_path
  File.join(Hyper.template_root, 'layout.html.erb')      
end

#view_path(url) ⇒ Object



9
10
11
# File 'lib/hyper/utils.rb', line 9

def view_path(url)
  File.join(Hyper.template_root, 'views', normalize_url(url) + '.html.erb')
end