lib/view.rb in runeblog-0.2.88 vs lib/view.rb in runeblog-0.2.89
- old
+ new
@@ -1,10 +1,9 @@
-require 'global'
require 'logging'
class RuneBlog::View
- attr_reader :name, :state
+ attr_reader :name, :state, :globals
attr_accessor :publisher
include RuneBlog::Helpers
def initialize(name)
@@ -13,9 +12,13 @@
@blog = RuneBlog.blog
@name = name
@publisher = RuneBlog::Publishing.new(name)
@can_publish = true # FIXME
@blog.view = self
+ gfile = @blog.root/"views/#{name}/themes/standard/global.lt3"
+ live = Livetext.customize(call: ".nopara")
+ live.xform_file(gfile)
+ @globals = live.vars
end
def dir
@blog.root + "/views/#@name/"
end