From b1d08ced020a74c5871b20ad4de57b533e3a4c2e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 24 Sep 2011 08:07:27 -0400 Subject: v3: qrcode, sisu generated manifest output, treat as such * place qrcode images in directory under manifest (manifest/qrcode) * fix remote placement of qrcode images when requested --- lib/sisu/v3/manifest.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/sisu/v3/manifest.rb') diff --git a/lib/sisu/v3/manifest.rb b/lib/sisu/v3/manifest.rb index cb25781f..d1e01f58 100644 --- a/lib/sisu/v3/manifest.rb +++ b/lib/sisu/v3/manifest.rb @@ -416,11 +416,10 @@ module SiSU_Manifest end end def qrc_image - pth="#{@env.path.webserv}/#{@env.path.stub_pwd}/_sisu/image" - fn=@f.base_filename.manifest_txt - img_md="#{@md.file.output_path.html.rel_image}/qrc_md.#{fn}.png" - img_title="#{@md.file.output_path.html.rel_image}/qrc_title.#{fn}.png" - if FileTest.file?("#{pth}/qrc_md.#{fn}.png")==true + fn=@md.fnb + img_md="qrcode/#{fn}.md.png" + img_title="qrcode/#{fn}.title.png" + if FileTest.file?(@f.place_file.qrcode_md.dir)==true @manifest[:html] <<<

QR code SiSU document metadata:

@@ -430,7 +429,7 @@ module SiSU_Manifest WOK end - if FileTest.file?("#{pth}/qrc_title.#{fn}.png")==true + if FileTest.file?(@f.place_file.qrcode_title.dir)==true @manifest[:html] <<<

QR code document title info:

-- cgit v1.2.3