lib/dyndoc-convert.rb in dyndoc-ruby-1.0.0 vs lib/dyndoc-convert.rb in dyndoc-ruby-1.0.1

- old
+ new

@@ -252,20 +252,21 @@ end code += "\n" + dyn_post_code if dyn_post_code ## TO TEST!!! ##Dyndoc.warn :cfg,cfg ##Dyndoc.warn :page,page - code = "[#rb<]require 'ostruct';cfg = OpenStruct.new(" + cfg.inspect + ");page = OpenStruct.new(" + page.inspect + ")[#>]" +code + code = "[#rb<]require 'ostruct'; cfg = OpenStruct.new(" + cfg.inspect + ");page = OpenStruct.new(" + page.inspect + ")[#>]" +code code = dyn_tags + code if dyn_tags ## add path for user code_path = "[#path]" if opts[:user] code_path << "\n" << File.join(opts[:dyn_root],'users',opts[:user],"dynlib") code_path << "\n" << File.join(opts[:dyn_root],'users',opts[:user]) end code_path << "\n" << File.join(sys_root,'public','users') code_path << "\n" << File.join(sys_root,'system','dynlib') + code_path << "\n" << sys_root code_path << "\n" << File.join(opts[:dyn_root],'dynlib') code_path << "\n" << opts[:dyn_root] << "\n" code_path << "\n" << "[#require]RodaSrvCore" << "\n" code_path << "[#main][#<]\n" code = code_path + code