enable partials

This commit is contained in:
tdreyno 2009-09-29 15:04:41 -07:00
parent ce4292a5c7
commit b91d13c0cd
2 changed files with 7 additions and 1 deletions

View file

@ -3,6 +3,11 @@ require 'haml'
require 'sinatra/base'
require 'middleman/helpers'
def mime(ext, type)
ext = ".#{ext}" unless ext.to_s[0] == ?.
Rack::Mime::MIME_TYPES[ext.to_s] = type
end
module Middleman
class Base < Sinatra::Base
set :app_file, __FILE__
@ -28,6 +33,7 @@ module Middleman
# include helpers
helpers Middleman::Helpers
# Default build features
configure :build do
enable :minify_css
enable :minify_javascript

View file

@ -2,7 +2,7 @@ module Middleman
module Haml
def self.included(base)
base.supported_formats << "haml"
# base.helpers Middleman::HamlHelpers
base.helpers Middleman::HamlHelpers
end
def render_path(path)