diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-11-05 23:16:33 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-11-05 23:16:40 -0500 |
commit | d6b596f0108ce66d563e6ea7d2f6bbb8ead27b52 (patch) | |
tree | 4d959f2b6a768543027ae1b7c4fc885f7a17c4f2 /lib/sisu/v5/urls.rb | |
parent | v4 v5: version & changelog (diff) |
v5: xml, scaffold, re-activated, split into sisu structure & collapsed structuresisu_4.2.11
* --xml-scaffold-sisu (--xml-scaffold)
* --xml-scaffold-collapse
* output currently to terminal only
Diffstat (limited to 'lib/sisu/v5/urls.rb')
-rw-r--r-- | lib/sisu/v5/urls.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/sisu/v5/urls.rb b/lib/sisu/v5/urls.rb index 9f8c9a75..a7b53985 100644 --- a/lib/sisu/v5/urls.rb +++ b/lib/sisu/v5/urls.rb @@ -116,6 +116,8 @@ module SiSU_Urls 't --txt (Plain-text (endnotes))'=>@fn[:plain], 'x --xml-sax (XML sax type)'=>@fn[:sax], 'X --xml-dom (XML dom type)'=>@fn[:dom], + ' --xml-scaffold-sisu (XML scaffold)'=>@fn[:xml_scaffold_structure_sisu], + ' --xml-scaffold-collapse (XML scaffold)'=>@fn[:xml_scaffold_structure_collapse], 'Q --qrcode (QR Code jpg)'=>@fn[:qrcode], 'y --manifest (Manifest, html)'=>@fn[:manifest], 'Y (Sitemap, xml)'=>@fn[:sitemap], @@ -209,6 +211,12 @@ module SiSU_Urls def dom(x) SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.xml_dom.dir}/#{@md.file.base_filename.xml_dom}").result end + def scaffold_structure_sisu(x) + SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.xml_scaffold_structure_sisu.dir}/#{@md.file.base_filename.xml_scaffold_structure_sisu}").result + end + def scaffold_structure_collapse(x) + SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.xml_scaffold_structure_collapse.dir}/#{@md.file.base_filename.xml_scaffold_structure_collapse}").result + end def sitemap(x) #BROKEN SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.sitemaps.dir}/#{@md.file.base_filename.sitemap}").result end @@ -398,6 +406,14 @@ module SiSU_Urls and @opt.act[:xml_sax][:set]==:on show.xml.sax(x) end + if x=~/--xml-scaffold-sisu\b/ \ + and @opt.act[:xml_scaffold_structure_sisu][:set]==:on + show.xml.scaffold_structure_sisu(x) + end + if x=~/--xml-scaffold-collapse\b/ \ + and @opt.act[:xml_scaffold_structure_collapse][:set]==:on + show.xml.scaffold_structure_collapse(x) + end if x=~/--qrcode\b/ \ and @opt.act[:qrcode][:set]==:on show.qrcode(x) |