Name

attr-list — replaces placeholders in curly braces with provided values

ATTRIBUTES

Attribute Pos. Req. Default Description
hash
interpolate     0 interpolate input?
reparse     1 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

[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

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

attr-list is available in Interchange versions:

5.0.1-5.6.0

SOURCE

Interchange 5.6.0:

Source: code/SystemTag/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: attr_list.coretag,v 1.7 2007-03-30 23:40:49 pajamian Exp $

UserTag attr-list           addAttr
UserTag attr-list           hasEndTag
UserTag attr-list           PosNumber    0
UserTag attr-list           noRearrange
UserTag attr-list           Version      $Revision: 1.7 $
UserTag attr-list           Routine      <<EOR
sub {
my ($opt, $body) = @_;
if( ref $opt->{hash} ) {
  $opt = $opt->{hash};
}
return Vend::Interpolate::tag_attr_list($body, $opt);
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

uc-attr-list(7ic)

DocBook! Interchange!