lib/runeblog.rb in runeblog-0.2.92 vs lib/runeblog.rb in runeblog-0.2.93

- old
+ new

@@ -92,12 +92,10 @@ @root = Dir.pwd/root_rel copy_data(:config, @root/:data) unless File.exist?(@root/"data/VIEW") write_repo_config(root: @root) get_repo_config @views = retrieve_views -puts @views.inspect -system("cat #@root/data/VIEW") self.view = File.read(@root/"data/VIEW").chomp md = Dir.pwd.match(%r[.*/views/(.*?)/]) if md @view_name = md[1] @view = str2view(@view_name) @@ -461,11 +459,10 @@ _tmp_error(err) end def generate_view(view) # huh? log!(enter: __method__, args: [view]) -puts "gv: view = #{view}" vdir = @root/:views/view @theme = @root/:views/view/:themes/:standard depend = [vdir/"remote/etc/blog.css.lt3", @theme/"global.lt3", @theme/"blog/head.lt3", # @theme/"navbar/navbar.lt3", @@ -476,10 +473,11 @@ preprocess cwd: vdir/"themes/standard", deps: depend, force: true, src: "blog/generate.lt3", dst: vdir/:remote/"index.html", call: ".nopara" copy!("#{vdir}/themes/standard/banner/*", "#{vdir}/remote/banner/") # includes navbar/ copy("#{vdir}/assets/*", "#{vdir}/remote/assets/") +# rebuild widgets copy_widget_html(view) rescue => err STDERR.puts err STDERR.puts err.backtrace.join("\n") # _tmp_error(err) @@ -596,13 +594,14 @@ # Step 4... # FIXME dependencies? preprocess cwd: @theme/:post, src: "generate.lt3", force: true, dst: remote/ahtml, copy: @theme/:post, call: ".nopara" # , debug: true +# copy(remote/ahtml, remote/permalink/ahtml) # FIXME dependencies? - preprocess cwd: @theme/:post, src: "permalink.lt3", - dst: remote/:permalink/ahtml, - mix: "liveblog" # , debug: true +# preprocess cwd: @theme/:post, src: "permalink.lt3", +# dst: remote/:permalink/ahtml, +# mix: "liveblog" # , debug: true copy_widget_html(view_name) rescue => err _tmp_error(err) end