forked from bricoleurs/templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeta_keywordlist.mc
42 lines (27 loc) · 944 Bytes
/
meta_keywordlist.mc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%doc>
=head1 NAME
meta_keywords.mc -- Outputs a keywords "meta" tag.
=head1 SYNOPSIS
<& meta_keywords.mc, which => $which &>
=head1 DESCRIPTION
Outputs an XHTML-compliant "meta" tag for keywords. The C<which> parameter
tells F<keyword_list.mc> which keywords to return. The possible values are the
same as for the F<keyword_list.mc> template.
=head2 REQUIREMENTS
You must have the F<keyword_list.mc> template installed.
=head1 AUTHOR
David Wheeler <[email protected]>
=head1 COPYRIGHT AND LICENSE
Copyright 2003 by Kineticode, Inc and by Mac Publishing, LLC.
This template is free software; you can redistribute it and/or modify it under
the same terms as Bricolage itself.
=cut
</%doc>
<%init>;
$m->print('<meta name="keywords" content="',
Apache::Util::escape_html
( join (', ', map { $_->get_name }
$m->comp('/util/keyword_list.mc', %ARGS))),
'" />');
return;
</%init>