Sha256: 372d0177897ee0b431cd35d770af225a820d775972be8ca6ff05975591d5f523

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

require 'octopress-ink'

class ClassicTheme < Octopress::Plugin
  def initialize(name, type)
    @assets_path = File.expand_path(File.join(File.dirname(__FILE__), 'theme'))
    super
  end

  def add_assets
    add_stylesheets ['site.css','foo.css'], 'all'
    add_stylesheet 'print.css', 'print'
    add_javascripts ['foo.js', 'bar.js']
    add_sass 'bar.scss'
    add_file 'test.html'
  end
end

class AwesomeSauce < Octopress::Plugin
  def initialize(name, type)
    @assets_path = File.expand_path(File.join(File.dirname(__FILE__), 'awesome-sauce'))
    super
  end
end

Octopress.register_plugin(ClassicTheme, 'classic', 'theme')
Octopress.register_plugin(AwesomeSauce, 'awesome-sauce')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
octopress-ink-1.0.0.alpha.15 test/source/_plugins/bundler.rb