Lines Matching refs:SOURCE
72 Carp::croak("Usage: $ {pack}::new(TYPE => ..., SOURCE => ...)");
93 $self->{SOURCE} = $source;
113 my $data = _load_text($self->{SOURCE});
120 if ($self->{UNTAINT} && _is_clean($self->{SOURCE})) {
130 $self->{FILENAME} = $self->{SOURCE};
131 $self->{SOURCE} = $data;
135 $self->{SOURCE} = join '', @{ $self->{SOURCE} };
140 my $fh = $self->{SOURCE};
145 $self->{SOURCE} = $data;
162 return $self->{SOURCE};
168 $self->{SOURCE} = $newdata;
199 @tokens = split /($DELIM|\n)/, $self->{SOURCE};
202 @tokens = split /(\\\\(?=\\*[{}])|\\[{}]|[{}\n])/, $self->{SOURCE};
271 $self->{SOURCE} = \@content;
364 foreach $fi_item (@{ $fi_self->{SOURCE} }) {
457 my $templ = $pack->new(TYPE => 'STRING', SOURCE => $text, @_)
479 my $templ = Text::Template->new(TYPE => 'FILE', SOURCE => $fn, @_) or return undef;
621 $template = Text::Template->new(TYPE => 'FILE', SOURCE => 'filename.tmpl');
622 $template = Text::Template->new(TYPE => 'ARRAY', SOURCE => [ ... ] );
623 $template = Text::Template->new(TYPE => 'FILEHANDLE', SOURCE => $fh );
624 $template = Text::Template->new(TYPE => 'STRING', SOURCE => '...' );
729 my $template = Text::Template->new(SOURCE => 'formletter.tmpl')
889 $template = Text::Template->new( TYPE => ..., SOURCE => ... );
893 template object. C<SOURCE> says where the template source code will
898 Text::Template->new( TYPE => 'FILE', SOURCE => $filename );
904 The C<TYPE> can also be C<STRING>, in which case the C<SOURCE> should
908 SOURCE => "This is the actual template!" );
915 SOURCE => [ "This is ", "the actual",
928 SOURCE => \*STDIN );
931 C<SOURCE> is required. If you omit it, the program will abort.
933 The words C<TYPE> and C<SOURCE> can be spelled any of the following ways:
935 TYPE SOURCE
938 -TYPE -SOURCE
957 C<SOURCE> is a C<FILE>, then the data will be decoded from the given encoding
964 SOURCE => 'xyz.tmpl');
1339 SOURCE => 'The value is {1/0}');
1961 my $template = Text::Template->new(SOURCE => $filename);
1971 my $template = Text::Template->new(SOURCE => $filename)
2338 =head1 SOURCE