Sha256: 923effa5f18abc29da985d1aff9ed40d0ce995eb76934cbf9895e004c19ef8a9

Contents?: true

Size: 718 Bytes

Versions: 51

Compression:

Stored size: 718 Bytes

Contents

# Mobile HTML5 Boilerplate
class Middleman::Templates::Mobile < Middleman::Templates::Base

  # Slightly different paths
  class_option :css_dir, :default => "css"
  class_option :js_dir, :default => "js"
  class_option :images_dir, :default => "img"

  # Template files are relative to this file
  # @return [String]
  def self.source_root
    File.dirname(__FILE__)
  end

  # Output the files
  # @return [void]
  def build_scaffold!
    template "shared/config.tt", File.join(location, "config.rb")
    directory "mobile/source", File.join(location, "source")
    empty_directory File.join(location, "source")
  end
end

# Register the template
Middleman::Templates.register(:mobile, Middleman::Templates::Mobile)

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
middleman-core-3.2.1 lib/middleman-core/templates/mobile.rb
middleman-core-3.2.0 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.6 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.5 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.4 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.3 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.2 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.1 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.0 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.0.rc.4 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.0.rc.3 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.0.rc.2 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.0.rc.1 lib/middleman-core/templates/mobile.rb
middleman-core-x86-mingw32-3.0.14 lib/middleman-core/templates/mobile.rb
middleman-core-3.0.14 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.0.beta.3 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.0.beta.2 lib/middleman-core/templates/mobile.rb
middleman-core-3.1.0.beta.1 lib/middleman-core/templates/mobile.rb
middleman-core-x86-mingw32-3.0.13 lib/middleman-core/templates/mobile.rb
middleman-core-3.0.13 lib/middleman-core/templates/mobile.rb