summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2014-08-29 14:06:02 +0200
committerUrban Müller2014-08-29 14:06:02 +0200
commit4aa2127d920aa3eb2d56faf8b96d599c088e72b4 (patch)
treeee916f7d6d794abfd33723cccaa3520a13a558ab
parentac5ba76a64857445fcf816943d6756962edb0d65 (diff)
downloaditools-4aa2127d920aa3eb2d56faf8b96d599c088e72b4.tar.gz
itools-4aa2127d920aa3eb2d56faf8b96d599c088e72b4.tar.bz2
itools-4aa2127d920aa3eb2d56faf8b96d599c088e72b4.zip
support cache manifests
-rw-r--r--it_html.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index 923facb..ec24da6 100644
--- a/it_html.class
+++ b/it_html.class
@@ -157,8 +157,10 @@ function html($args)
list($data, $p) = it_parse_args($args);
$p += $this->p;
+ $manifest = $p['manifest'] ? ' manifest="' . Q($p['manifest']) . '"' : "";
+
$html = ($p['doctype'] ? $p['doctype'] : $this->doctypes[$p['htmltype']]) . "\n" .
- '<html ' . ($p['htmltype'] == "xhtml" ? 'xmlns="http://www.w3.org/1999/xhtml" ' : '') . ($p['htmltype'] == "xhtml-mobile" ? 'xml:lang' : 'lang') . "=\"{$p['lang']}\">\n" . $data . ($p['omit_endhtml'] ? '' : "</html>\n");
+ '<html ' . ($p['htmltype'] == "xhtml" ? 'xmlns="http://www.w3.org/1999/xhtml" ' : '') . ($p['htmltype'] == "xhtml-mobile" ? 'xml:lang' : 'lang') . "=\"{$p['lang']}\"$manifest>\n" . $data . ($p['omit_endhtml'] ? '' : "</html>\n");
return EDC('upd') ? it::replace(array('<!DOCTYPE.*<head>' => ''), $html, array('singleline' => true)) : $html;
}