lib/write_down.rb in write_down-0.0.5 vs lib/write_down.rb in write_down-0.2.0
- old
+ new
@@ -1,37 +1,17 @@
require "write_down/version"
-require "minidown"
-require "mustache"
-require "nokogiri"
-require "write_down/article"
-require "write_down/converter"
-require "write_down/template"
-require "write_down/series"
-require "write_down/site"
-require "write_down/page"
+require "write_down/model/asset.rb"
+require "write_down/model/base.rb"
+require "write_down/model/essay.rb"
+require "write_down/model/layout.rb"
+require "write_down/model/post.rb"
+require "write_down/model/slide.rb"
+require "write_down/model/container.rb"
+require "write_down/model/page.rb"
+require "write_down/converter/base.rb"
+require "write_down/converter/markdown.rb"
+require "write_down/converter/org.rb"
+require "write_down/utils/qiniu_sync.rb"
module WriteDown
-
- $site = Site.new
-
- #just a demo
- def self.hello
- "hello! I am write down! Enjoy!"
- end
-
- def self.build options
- puts "generating by theme #{options[:theme]} ........"
- #复制 html 模板到目标目录
- FileUtils.cp_r File.expand_path("../template/#{options[:theme]}", File.dirname(__FILE__)) + '/.', options[:dist]
- articles = Article.build options[:source]
- Template.render options[:dist], articles
- end
-
- #定义一套步骤
- def process
- # 检查
- # 初始化结构
- # 渲染+填充
- # 结束
- end
-
+ # Your code goes here...
end