Sha256: afa4bd678ffa1052dc237707de9a80848c82453388f016c2fe1c11a190c55438

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

module QEDProject
  module Libraries
    class Skeleton < QEDProject::Libraries::Base
      library :skeleton
      set_js_files ["tabs.js"]
      set_css_files ["base.css", "skeleton.css", "layout.css" ] 
      set_image_files [
        "apple-touch-icon-114x114.png",
        "apple-touch-icon-72x72.png",
        "apple-touch-icon.png",
        "favicon.ico"
      ]

      def generate!
        super
        return true if self.project.skip_index
        index_file = File.join(self.project.path, self.project.public_dir, "index.html")
        FileUtils.rm_rf index_file if File.exist?(index_file)
        render_template "index.html", index_file
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qedproject-0.1.1 lib/qedproject/libraries/skeleton.rb
qedproject-0.1.0 lib/qedproject/libraries/skeleton.rb