Skip to content

Instantly share code, notes, and snippets.

@tdreyno
Created October 8, 2009 21:15
Show Gist options
  • Save tdreyno/205431 to your computer and use it in GitHub Desktop.
Save tdreyno/205431 to your computer and use it in GitHub Desktop.
require 'config/path_helpers'
require 'config/haml_helpers'
Middleman::Base.mime :php, "text/html"
set :index_file, "index.php"
set :images_dir, "assets/images"
set :css_dir, "assets/stylesheets"
set :videos_dir, "assets/videos"
set :js_dir, "assets/javascripts"
alias_method :pre_billboard_asset_url, :asset_url
helpers do
def asset_url(path, prefix="")
return path if path.match(/^\//)
return path if path.match(/^\#/)
pre_billboard_asset_url(path, prefix)
end
end
configure :build do
set :http_prefix, "/sites/billboard"
# enable :smush_pngs
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment