aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/urls.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/urls.rb')
-rw-r--r--lib/sisu/urls.rb13
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)