• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/CPANInternal-140/Template-Toolkit/lib/Template/

Lines Matching defs:default

40     default => '',
62 $map->{ default } = $config->{ default } unless defined $map->{ default };
75 # view is sealed by default preventing variable update after
108 delete @$config{ qw( base method map default prefix suffix notfound item
161 # "map => { default=>'xxx' }" can be specified as "default => 'xxx'"
162 $clone->{ map }->{ default } = $config->{ default }
163 if defined $config->{ default };
171 push(@args, qw( default map ));
188 # (default: 'present'), then the method will be called passing a reference
191 # 'default' map entry is consulted and used if defined. The final argument
243 elsif (! ($template = $map->{ default }) ) {
244 # default not defined, so construct template name from type
267 # 'item' by default. Thus an external object present() method can
285 # suffix, default, etc., where $vars is an optional hash reference
287 # then the method will default to any 'notfound' template, if defined
379 # default($val)
381 # Special case accessor to retrieve/update 'default' as an alias for
382 # '$map->{ default }'.
385 sub default {
387 return @_ ? ($self->{ map }->{ default } = shift)
388 : $self->{ map }->{ default };
402 # parameter is set (default: 1). Last attempt is to match the entire
507 # access blocks directly ('include_naked' option, set by default)
518 # very short form of above ('include_naked' option, set by default)
565 [% view.default = 'anyobj' %]
602 particular item. The TEXT, HASH and ARRAY items default to 'test',
634 object reference and it supports the method (default: 'present') then
658 =item default
662 [% USE view(default => 'my_object') %]
666 If no map entry or default is provided then the view will attempt to
673 Any current prefix and suffix will be added to both the default template