Skip to content

Instantly share code, notes, and snippets.

@gma
Forked from datenimperator/Gemfile
Created February 4, 2013 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gma/4707513 to your computer and use it in GitHub Desktop.
Save gma/4707513 to your computer and use it in GitHub Desktop.
# Use the app.rb file to load Ruby code, modify or extend the models, or
# do whatever else you fancy when the theme is loaded.
module Nesta
class App
helpers do
# Add new helpers here.
include Sprockets::Helpers
end
# Add new routes here.
end
end
// located in themes/my-theme/assets/stylesheets
//= require foundation
//= require coderay
require 'rubygems'
require 'bundler/setup'
Bundler.require(:default)
# Load in our Nesta configs
nesta_config = YAML::load(File.open( File.join('config', 'config.yml')))
nesta_theme = nesta_config['theme']
map "/assets" do
environment = Sprockets::Environment.new
%w{javascripts stylesheets images}.each do |type|
environment.append_path File.join('themes', nesta_theme, 'assets', type)
end
Sprockets::Helpers.configure do |config|
config.environment = environment
config.prefix = "/assets"
config.digest = false
end
run environment
end
require 'nesta/env'
Nesta::Env.root = ::File.expand_path('.', ::File.dirname(__FILE__))
require 'nesta/app'
map "/" do
run Nesta::App
end
source 'http://rubygems.org'
gem 'nesta', '~> 0.9.13'
gem 'haml'
gem 'haml-coderay'
gem 'sass'
gem 'compass'
gem 'sprockets-sass'
gem 'sprockets-helpers'
gem 'zurb-foundation'
!!!
%html
%head
%link{ href:stylesheet_path('application.css'), media:'screen', rel:'stylesheet' }
%body
%script{ src: javascript_path('application.js') }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment