enable partials
This commit is contained in:
parent
ce4292a5c7
commit
b91d13c0cd
|
@ -3,6 +3,11 @@ require 'haml'
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
require 'middleman/helpers'
|
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
|
module Middleman
|
||||||
class Base < Sinatra::Base
|
class Base < Sinatra::Base
|
||||||
set :app_file, __FILE__
|
set :app_file, __FILE__
|
||||||
|
@ -28,6 +33,7 @@ module Middleman
|
||||||
# include helpers
|
# include helpers
|
||||||
helpers Middleman::Helpers
|
helpers Middleman::Helpers
|
||||||
|
|
||||||
|
# Default build features
|
||||||
configure :build do
|
configure :build do
|
||||||
enable :minify_css
|
enable :minify_css
|
||||||
enable :minify_javascript
|
enable :minify_javascript
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Middleman
|
||||||
module Haml
|
module Haml
|
||||||
def self.included(base)
|
def self.included(base)
|
||||||
base.supported_formats << "haml"
|
base.supported_formats << "haml"
|
||||||
# base.helpers Middleman::HamlHelpers
|
base.helpers Middleman::HamlHelpers
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_path(path)
|
def render_path(path)
|
||||||
|
|
Loading…
Reference in a new issue