Sha256: ac8f4fc781cd9b7b9d3a426e91ab235016bac29ab246a54c53cc47d17427380a

Contents?: true

Size: 708 Bytes

Versions: 6

Compression:

Stored size: 708 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

6 entries across 6 versions & 2 rubygems

Version Path
middleman-core-3.3.5 lib/middleman-core/templates/mobile.rb
middleman-core-cj-3.3.6 lib/middleman-core/templates/mobile.rb
middleman-core-cj-3.3.5 lib/middleman-core/templates/mobile.rb
middleman-core-cj-3.3.4 lib/middleman-core/templates/mobile.rb
middleman-core-3.3.4 lib/middleman-core/templates/mobile.rb
middleman-core-3.3.3 lib/middleman-core/templates/mobile.rb