[%- # link to the pdf, source and other variants of the doc # src block flag = 0; IF doc.src_doc.link && doc.meta.link != 'search/searchresults.html'; INCLUDE src_doc; ELSE; flag = flag + 1; END; # pdf block IF doc.pdf_doc.link && doc.meta.link != 'search/searchresults.html'; INCLUDE pdf_doc; ELSE; flag = flag + 1; END; IF flag == 2; "
"; END; -%] [%- BLOCK src_doc -%] Source version of the document ([%- doc.src_doc.size -%]) [%- END -%] [%- BLOCK pdf_doc -%] PDF version of the document ([%- doc.pdf_doc.size -%]) [%- END -%]