Test project to show that when serve exports haml it's doesn't use the :format options.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tmp
views
.gitignore
Gemfile
Gemfile.lock
README.md
compass.config
config.ru

README.md

HTML5 Serve Test

This is a sample project to show that Serve will output HTML5 while using it's built in server, but not when exporting.

I created the projecting using the following command:

> serve create -t blank html5test

###Serve Version > serve --version DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from gem_original_require at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31) Serve 1.5.1

###Config I only changed 2 things in the configuration files.

  1. In the Gemfile I added haml as a requirement.
  2. In config.ru I added the following as suggested here.

####config.ru #Configure Haml Hack require 'haml' class Haml::Engine alias old_initialize initialize def initialize(lines, options) if options.nil? options = {} end options.update(:format => :html5) old_initialize(lines, options) end end