PDF::FromHTML::Template::Element::Var - PDF::FromHTML::Template::Element::Var documentation


PDF-FromHTML documentation Contained in the PDF-FromHTML distribution.

Index


Code Index:

NAME

Top

PDF::FromHTML::Template::Element::Var

PURPOSE

Top

To provide variable support

NODE NAME

Top

VAR

INHERITANCE

Top

PDF::FromHTML::Template::Element

ATTRIBUTES

Top

* NAME This is the name of the parameter to substitute

CHILDREN

Top

None

AFFECTS

Top

Nothing

DEPENDENCIES

Top

None

USAGE

Top

  <var name="SomeParam"/>

NOTE

Top

In most cases, the use of VAR is unnecessary as the nodes all have the ability to use the $-notation for variablized attributes. For example, the filename for IMAGE or the text for TEXTBOX can be specified by the appropriate attribute.

However, the node is not provided solely for backwards compatibility. There are some situations where the attribute $-notation is inadequate and a VAR node is required. (q.v. TEXTBOX for an example)

AUTHOR

Top

Rob Kinyon (rkinyon@columbus.rr.com)

SEE ALSO

Top

TEXTBOX, IMAGE


PDF-FromHTML documentation Contained in the PDF-FromHTML distribution.

package PDF::FromHTML::Template::Element::Var;

use strict;

BEGIN {
    use vars qw(@ISA);
    @ISA = qw(PDF::FromHTML::Template::Element);

    use PDF::FromHTML::Template::Element;
}

sub resolve { ($_[1])->param($_[0]{NAME}) }

1;
__END__