rename default exts

This commit is contained in:
Thomas Reynolds 2011-07-10 13:57:31 -07:00
parent f99b9fb2ca
commit 7828b07dad
3 changed files with 9 additions and 11 deletions

View file

@ -33,7 +33,7 @@ module Middleman::CoreExtensions::Features
# The Feature API is itself a Feature. Mind blowing! # The Feature API is itself a Feature. Mind blowing!
class << self class << self
def registered(app) def registered(app)
app.set :default_extensions, [] app.set :default_features, []
app.extend ClassMethods app.extend ClassMethods
end end
alias :included :registered alias :included :registered

View file

@ -49,7 +49,7 @@ module Middleman
# Parse YAML from templates # Parse YAML from templates
register Middleman::CoreExtensions::FrontMatter register Middleman::CoreExtensions::FrontMatter
set :default_extensions, [ set :default_features, [
:lorem :lorem
] ]

View file

@ -25,11 +25,11 @@
# page "/path/to/file.html", :layout => :otherlayout # page "/path/to/file.html", :layout => :otherlayout
# Helpers # Helpers
helpers do # helpers do
def some_helper(*args) # def some_helper(*args)
"Helping" # "Helping"
end # end
end # end
<% if options[:css_dir] != "stylesheets" -%> <% if options[:css_dir] != "stylesheets" -%>
set :css_dir, "<%= options[:css_dir] -%>" set :css_dir, "<%= options[:css_dir] -%>"
@ -66,13 +66,11 @@ configure :build do
# Use relative URLs # Use relative URLs
# activate :relative_assets # activate :relative_assets
# Compress PNGs after build (gem install middleman-smusher) # Compress PNGs after build
# First: gem install middleman-smusher
# require "middleman-smusher" # require "middleman-smusher"
# activate :smusher # activate :smusher
# Generate ugly/obfuscated HTML from Haml
# activate :ugly_haml
# Or use a different image path # Or use a different image path
# set :http_path, "/Content/images/" # set :http_path, "/Content/images/"
end end