lib/view.rb in runeblog-0.2.99 vs lib/view.rb in runeblog-0.3.01
- old
+ new
@@ -13,9 +13,11 @@
@name = name
@publisher = RuneBlog::Publishing.new(name)
@can_publish = true # FIXME
@blog.view = self
gfile = @blog.root/"views/#{name}/themes/standard/global.lt3"
+ return unless File.exist?(gfile) # Hackish!! how is View.new called from create_view??
+
live = Livetext.customize(call: ".nopara")
live.xform_file(gfile)
@globals = live.vars
end