lib/octopress-ink.rb in octopress-ink-1.0.0.rc.38 vs lib/octopress-ink.rb in octopress-ink-1.0.0.rc.39

- old
+ new

@@ -14,10 +14,11 @@ require 'octopress-ink/cache' module Octopress module Ink + autoload :Utils, 'octopress-ink/utils' autoload :Assets, 'octopress-ink/assets' autoload :Convertible, 'octopress-ink/jekyll/convertible' autoload :Page, 'octopress-ink/jekyll/page' autoload :Layout, 'octopress-ink/jekyll/layout' autoload :StaticFile, 'octopress-ink/jekyll/static_file' @@ -40,12 +41,12 @@ version << "Octopress v#{Octopress::VERSION} " end version << "Octopress Ink v#{Octopress::Ink::VERSION}" end - def self.payload - config = Plugins.config + def self.payload(lang=nil) + config = Plugins.config(lang) ink_payload = { 'plugins' => config['plugins'], 'theme' => config['theme'], 'octopress' => { 'version' => version @@ -142,10 +143,9 @@ Octopress.site(options) Plugins.register options['config'] = config if config path = copy_path(name, options) - if p = plugin(name) copied = p.copy_asset_files(path, options) if !copied.empty? puts "Copied files:\n#{copied.join("\n")}"