uc-attr-list — replaces placeholders in curly braces with provided values
| Attribute | Pos. | Req. | Default | Description |
|---|---|---|---|---|
| hash | ||||
| interpolate | 0 | interpolate input? | ||
| reparse | 1 | interpolate output? | ||
| hide | 0 | Hide the tag return value? |
[uc-attr-list] replaces placeholders in curly braces with
provided values. These values can be passed as parameters or as
Perl hash reference in the hash parameter.
| Placeholder | Replacement |
|---|---|
| {NAME} | value of NAME |
| {NAME?}...{/NAME?} | placeholder contents if NAME is true |
| {NAME?}...{/NAME?} | placeholder contents if NAME is false |
Interchange 5.9.0:
Source: code/SystemTag/uc_attr_list.coretag
Lines: 23
# Copyright 2002-2007 Interchange Development Group and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. See the LICENSE file for details.
#
# $Id: uc_attr_list.coretag,v 1.2 2007-03-30 23:40:49 pajamian Exp $
UserTag uc-attr-list addAttr
UserTag uc-attr-list hasEndTag
UserTag uc-attr-list PosNumber 0
UserTag uc-attr-list noRearrange
UserTag uc-attr-list Version $Revision: 1.2 $
UserTag uc-attr-list Routine <<EOR
sub {
my ($opt, $body) = @_;
if( ref $opt->{hash} ) {
$opt = $opt->{hash};
}
return Vend::Interpolate::tag_attr_list($body, $opt, 1);
}
EOR