lib/dyndoc-convert.rb in dyndoc-ruby-0.7.1 vs lib/dyndoc-convert.rb in dyndoc-ruby-0.7.2
- old
+ new
@@ -60,10 +60,10 @@
dyn_root= cfg["root"] || File.expand_path("..",dyn_file)
if cfg["layout"]
cfg_tmp=File.join(dyn_root,cfg["layout"])
- dyn_layout=File.read(cfg_tmp) if !dyn_layout and File.exist? cfg_tmp
+ dyn_layout=cfg_tmp if !dyn_layout and File.exist? cfg_tmp
end
if cfg["pre"]
cfg_tmp=File.join(dyn_root,cfg["pre"])
dyn_pre_code=File.read(cfg_tmp) unless dyn_pre_code and File.exist? cfg_tmp
end