diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-10-03 00:19:18 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-10-03 00:19:18 -0400 |
commit | 2099cce12c2ffb53023c3c644b329b235e442ae0 (patch) | |
tree | ec14544068e21b59c7bfd34e389344e3eaede296 /lib/sisu/v4/dal_substitutions_and_insertions.rb | |
parent | v4: defaults, some cleaning (diff) |
v4: skins, remove
* remove skins
* defaults, rename class Defaults (was InfoSkin)
* sisupod, remove skin
* db
* no skin info to store, omitted from structure
* change prefix name (structure changed)
Diffstat (limited to 'lib/sisu/v4/dal_substitutions_and_insertions.rb')
-rw-r--r-- | lib/sisu/v4/dal_substitutions_and_insertions.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/sisu/v4/dal_substitutions_and_insertions.rb b/lib/sisu/v4/dal_substitutions_and_insertions.rb index 8478b6e7..92e19034 100644 --- a/lib/sisu/v4/dal_substitutions_and_insertions.rb +++ b/lib/sisu/v4/dal_substitutions_and_insertions.rb @@ -59,7 +59,6 @@ module SiSU_DAL_SubstituteAndInsert class SI def initialize(md,data) @md,@data=md,data - @skin=SiSU_Env::InfoSkin.new(@md) end def substitutions_and_insertions? data=@data @@ -75,7 +74,6 @@ module SiSU_DAL_SubstituteAndInsert data.each do |para| if para =~/<:(insert\d+)!?>/ \ and para !~/^%\s+/ - @skin.select ins=SiSU_Viz::Inserts.new case para when /^\s*<:(insert1)>\s*$/ @@ -83,49 +81,42 @@ module SiSU_DAL_SubstituteAndInsert if defined? ins.insert1 para=[] ins.insert1.split(/\n\n/).each {|x| para << x } - else p "skin #{i} not found in #{@skin.select}" end when /^\s*<:(insert2)>\s*$/ i=$1 if defined? ins.insert2 para=[] ins.insert2.split(/\n\n/).each {|x| para << x } - else p "skin #{i} not found in #{@skin.select}" end when /^\s*<:(insert3)>\s*$/ i=$1 if defined? ins.insert3 para=[] ins.insert3.split(/\n\n/).each {|x| para << x << "\n"} - else p "skin #{i} not found in #{@skin.select}" end when /^\s*<:(insert4)>\s*$/ i=$1 if defined? ins.insert4 para=[] ins.insert4.split(/\n\n/).each {|x| para << x << "\n"} - else p "skin #{i} not found in #{@skin.select}" end when /^\s*<:(insert5)>\s*$/ i=$1 if defined? ins.insert5 para=[] ins.insert5.split(/\n\n/).each {|x| para << x << "\n"} - else p "skin #{i} not found in #{@skin.select}" end when /^\s*<:(insert6)>\s*$/ i=$1 if defined? ins.insert6 para=[] ins.insert6.split(/\n\n/).each {|x| para << x << "\n"} - else p "skin #{i} not found in #{@skin.select}" end when /^\s*<:(insert7)>\s*$/ i=$1 if defined? ins.insert7 para=[] ins.insert7.split(/\n\n/).each {|x| para << x << "\n"} - else p "skin #{i} not found in #{@skin.select}" end end para.each {|x| data_expand << x } |