def absolute(path = nil)
      return path if path && path[0] != '/'
      abs = if path
        [env['scorched.root_path'], path].join('/').gsub(%r{/+}, '/')
      else
        env['scorched.root_path']
      end
      abs.insert(0, '/') unless abs[0] == '/'
      abs
    end
def absolute(path = nil)
      return path if path && path[0] != '/'
      abs = if path
        [env['scorched.root_path'], path].join('/').gsub(%r{/+}, '/')
      else
        env['scorched.root_path']
      end
      abs.insert(0, '/') unless abs[0] == '/'
      abs
    end
Takes an optional path, relative to the applications root URL, and returns an absolute path.
 If relative path given (i.e. anything not starting with `/`), returns it as-is.
 Example: absolute('/style.css') #=> /myapp/style.css