diff options
author | Ralph Amissah <ralph@amissah.com> | 2016-02-24 23:21:06 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2016-02-24 23:54:58 -0500 |
commit | ee91e6282464321d5f1e8694c048c24abf8d15d7 (patch) | |
tree | f625748df5ac43de3b19ad96863b098eb1231af6 /lib/sisu/urls.rb | |
parent | txt_orgmode, update (dp add email header field) (diff) |
json, an output representation, first pass
Diffstat (limited to 'lib/sisu/urls.rb')
-rw-r--r-- | lib/sisu/urls.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/sisu/urls.rb b/lib/sisu/urls.rb index 86eb2e33..b2674fc4 100644 --- a/lib/sisu/urls.rb +++ b/lib/sisu/urls.rb @@ -335,6 +335,15 @@ module SiSU_Urls end self end + def json + { + cmd: '--js (json)', + viewer: @prog.web_browser, + f_pth: @md.file.output_path.json.dir + '/' \ + + @md.file.base_filename.json, + fn: @fn[:json], + } + end def pdf def landscape { @@ -620,6 +629,10 @@ module SiSU_Urls show.report(report_info.xml.scaffold_collapse) #show.maintenance(report_info.xml.scaffold_collapse) end + if @opt.act[:json][:set]==:on + show.report(report_info.json) + #show.maintenance(report_info.json) + end if (@opt.act[:pdf][:set]==:on \ or @opt.act[:pdf_p][:set]==:on \ or @opt.act[:pdf_l][:set]==:on) |