Name

output-to — map output

ATTRIBUTES

Attribute Pos. Req. Default Description
name Yes No space name
interpolate     0 interpolate input?
reparse     1 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

[output-to] allows you to map pieces of a page to different named spaces and unpack them with the [unpack] tag.

BEHAVIOR

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

EXAMPLES

Example: Use space "htmlhead"

[output-to name="htmlhead"]

Example: Return to default space

[output-to name=""]

NOTES

AVAILABILITY

output-to is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/SystemTag/output_to.tag
Lines: 24


# 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: output_to.tag,v 1.4 2007-03-30 23:40:49 pajamian Exp $

UserTag output-to Order      name
UserTag output-to addAttr
UserTag output-to hasEndTag
UserTag output-to Version    $Revision: 1.4 $
UserTag output-to Routine    <<EOR
sub {
my ($name, $opt, $body) = @_;
$name ||= '';
$name = lc $name;
my $nary = $Vend::OutPtr{$name} ||= [];
push @Vend::Output, \$body;
push @$nary, $#Vend::Output;
return;
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

unpack(7ic)

DocBook! Interchange!