Index: openacs-4/packages/acs-templating/tcl/head-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/head-procs.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-templating/tcl/head-procs.tcl 17 Dec 2007 14:20:03 -0000 1.5 +++ openacs-4/packages/acs-templating/tcl/head-procs.tcl 4 Jan 2008 21:46:36 -0000 1.6 @@ -151,7 +151,7 @@ error "You must supply either -http_equiv or -name." } - set scripts($http_equiv,$name) [list \ + set metas($http_equiv,$name) [list \ $http_equiv \ $name \ $scheme \ @@ -434,3 +434,166 @@ set footers [list $values] } } + +ad_proc template::head::prepare_multirows {} { + Generate multirows for meta, css, scripts + Called only from blank-master.tcl +} { + + # Generate the tag multirow + variable ::template::head::metas + template::multirow create meta name content http_equiv scheme lang + if {[array exists metas]} { + foreach name [array names metas] { + foreach {http_equiv name scheme content lang} $metas($name) { + template::multirow append meta \ + $name \ + $content \ + $http_equiv \ + $scheme \ + $lang + } + } + unset metas + } + + # Generate the tag multirow + variable ::template::head::links + template::multirow create link rel type href title lang media + if {[array exists links]} { + foreach name [array names links] { + foreach {rel href type media title lang} $links($name) { + template::multirow append link \ + $rel \ + $type \ + $href \ + $title \ + $lang \ + $media + } + } + unset links + } + + # Generate the