lib/runeblog.rb in runeblog-0.0.61 vs lib/runeblog.rb in runeblog-0.0.62

- old
+ new

@@ -1,11 +1,11 @@ require 'find' require 'yaml' require 'livetext' class RuneBlog - VERSION = "0.0.61" + VERSION = "0.0.62" Path = File.expand_path(File.join(File.dirname(__FILE__))) DefaultData = Path + "/../data" BlogHeaderPath = DefaultData + "/custom/blog_header.html" @@ -134,9 +134,13 @@ end def drafts dir = "#@root/src" drafts = Dir.entries(dir).grep(/^0.*.lt3/) + end + + def change_view(view) + @view = view end def process_post(file) @main ||= Livetext.new @main.main.output = File.new("/tmp/WHOA","w")