require 'sinatra/asset_pipeline'
require 'sinatra/base'
require 'sinatra/reloader'

class Wowser < Sinatra::Base

  set :root, File.dirname(__FILE__) + '/../'

  configure do
    register Sinatra::AssetPipeline

    # Locate vendor assets installed through Bower
    sprockets.append_path File.join(root, 'vendor', 'assets')

    # Disable CoffeeScript's anonymous function wrap
    Tilt::CoffeeScriptTemplate.default_bare = true
  end

  configure :development do
    register Sinatra::Reloader

    # Configure Sprockets' caching mechanism manually as it defaults to none
    # See: https://github.com/middleman/middleman-sprockets/pull/25
    sprockets.cache = {}
  end

  get '/' do
    erb :index
  end

end

require 'sinatra/asset_pipeline'
require 'sinatra/base'
require 'sinatra/reloader'

class Wowser < Sinatra::Base

  configure do
    set :root, File.dirname(__FILE__) + '/../'

    register Sinatra::AssetPipeline

    # Locate vendor assets installed through Bower
    sprockets.append_path File.join(root, 'vendor', 'assets')

    # Disable CoffeeScript's anonymous function wrap
    Tilt::CoffeeScriptTemplate.default_bare = true
  end

  configure :development do
    register Sinatra::Reloader

    # Configure Sprockets' caching mechanism manually as it defaults to none
    # See: https://github.com/middleman/middleman-sprockets/pull/25
    sprockets.cache = {}
  end

  get '/' do
    erb :index
  end

end

Move root into configuration block
Move root into configuration block
