Method: Trellis::Application.map_static

Defined in:
lib/trellis/trellis.rb

.map_static(urls = [], root = File.expand_path("#{File.dirname($0)}/../html/")) ⇒ Object

define url paths for static resources



85
86
87
# File 'lib/trellis/trellis.rb', line 85

def self.map_static(urls = [], root = File.expand_path("#{File.dirname($0)}/../html/"))
  @static_routes << {:urls => urls, :root => root}
end