lib/runeblog.rb in runeblog-0.2.62 vs lib/runeblog.rb in runeblog-0.2.63
- old
+ new
@@ -445,19 +445,10 @@
collect_recent_posts("recent.html")
rescue => err
_tmp_error(err)
end
- def _hack_pinned_rebuild(view)
- tmp = "/tmp/pinned.lt3"
- File.open(tmp, "w") do |f|
- f.puts ".mixin liveblog\n.pinned_rebuild #{view}"
- end
- xlate src: tmp, dst: "/tmp/junk.html"
- system("rm -f #{tmp} /tmp/junk.html")
- end
-
def generate_view(view) # huh?
log!(enter: __method__, args: [view])
vdir = @root/:views/view
@theme = @root/:views/view/:themes/:standard
depend = [vdir/"remote/etc/blog.css", @theme/"global.lt3",
@@ -467,10 +458,9 @@
xlate cwd: vdir/"themes/standard/etc", deps: depend,
src: "blog.css.lt3", copy: vdir/"remote/etc/blog.css" # , debug: true
xlate cwd: vdir/"themes/standard", deps: depend, force: true,
src: "blog/generate.lt3", dst: vdir/:remote/"index.html"
copy("#{vdir}/assets/*", "#{vdir}/remote/assets/")
-# _hack_pinned_rebuild(view) # FIXME experimental
copy_widget_html(view)
rescue => err
_tmp_error(err)
end