Sha256: 7804edc8ed975d21f4c80bc7d292cd242ae5c8254e89ec1d83f443e754ee57ac

Contents?: true

Size: 531 Bytes

Versions: 41

Compression:

Stored size: 531 Bytes

Contents

class Middleman::Templates::Mobile < Middleman::Templates::Base
  class_option :css_dir, :default => "css"
  class_option :js_dir, :default => "js"
  class_option :images_dir, :default => "img"

  def self.source_root
    File.dirname(__FILE__)
  end
  
  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

Middleman::Templates.register(:mobile, Middleman::Templates::Mobile)

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
middleman-2.0.16.1-x86-mingw32 lib/middleman/templates/mobile.rb
middleman-2.0.16.1 lib/middleman/templates/mobile.rb
middleman-2.0.16-x86-mingw32 lib/middleman/templates/mobile.rb
middleman-2.0.16 lib/middleman/templates/mobile.rb
middleman-2.0.15.4-x86-mingw32 lib/middleman/templates/mobile.rb
middleman-2.0.15.4 lib/middleman/templates/mobile.rb
middleman-2.0.15.3-x86-mingw32 lib/middleman/templates/mobile.rb
middleman-2.0.15.3 lib/middleman/templates/mobile.rb
middleman-2.0.15.2-x86-mingw32 lib/middleman/templates/mobile.rb
middleman-2.0.15.2 lib/middleman/templates/mobile.rb
middleman-2.0.15.1-x86-mingw32 lib/middleman/templates/mobile.rb
middleman-2.0.15.1 lib/middleman/templates/mobile.rb
middleman-2.0.15-x86-mingw32 lib/middleman/templates/mobile.rb
middleman-2.0.15 lib/middleman/templates/mobile.rb
middleman-3.0.0.alpha.3 lib/middleman/templates/mobile.rb
middleman-3.0.0.alpha.2 lib/middleman/templates/mobile.rb
middleman-2.0.14-x86-mingw32 lib/middleman/templates/mobile.rb
middleman-2.0.14 lib/middleman/templates/mobile.rb
middleman-2.0.14.pre2-x86-mingw32 lib/middleman/templates/mobile.rb
middleman-2.0.14.pre2 lib/middleman/templates/mobile.rb