File: head

package info (click to toggle)
libtemplate-perl 2.14-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 5,496 kB
  • ctags: 667
  • sloc: perl: 15,349; makefile: 62; xml: 7; sh: 5
file content (19 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[%# html/head: <head>...</head> element for HTML pages
  #
  # ARGS:
  #   - html.head.title	    # page title
  #   - html.head.meta      # hash of metadata  
  #   - html.headers        # additional HTML headers
  # TODO:
  #   - various other header items are not currently handled, 
  #     e.g. base, xbase, target, script, noscript, etc., but
  #     you can set 'html.headers' as a general work-around
  #     to put extra stuff in the <head>...</head> element
-%]
<head>
  <title>[% html.head.title %]</title>
[% FOREACH item = html.head.meta -%]
  <meta name="[% item.key %]" content="[% item.value %]">
[% END -%]
[% html.headers -%]
</head>