Name

uc-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

[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

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

uc-attr-list is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.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

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!