Sha256: 4322da5de5e04715b0a50cd11b3b5abafa64a0695e3c1da5cddaac53df9523d1

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 Bytes

Contents

module Octopress
  module Ink
    module Assets
      class Layout < Asset

        def register
          file = user_path
          dir = user_dir
          if !exists?(file)
            file = plugin_path 
            dir = plugin_dir
          end

          Plugins.site.layouts[name] = Jekyll::Layout.new(Plugins.site, dir, @file)
        end

        def name
          name = "#{@plugin.slug}:#{@file}"
          # remove extension
          name = name.split(".")[0..-2].join(".")
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
octopress-ink-1.0.0.alpha.33 lib/octopress-ink/assets/layout.rb
octopress-ink-1.0.0.alpha.32 lib/octopress-ink/assets/layout.rb