Changeset 2040

Show
Ignore:
Timestamp:
07/06/08 21:27:13
Author:
hsbt
Message:

add flag to use Template-Toolkit.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/Twitter.pm

    r1944 r2040  
    3232 
    3333    my $body = $self->templatize('twitter.tt', $args); 
     34 
     35    unless ($self->conf->{templatize}) { 
     36        $body = $args->{entry}->body_text; 
     37    } 
     38 
    3439    # TODO: FIX when Summary configurable. 
    3540    if ( length($body) > 159 ) { 
     
    9297    "apirealm" defaults to "Twitter API". 
    9398 
     99=item templatize 
     100Optional. 
     101A flag to use Template-Toolkit to message formatting. Defaults to 0. 
     102 
    94103=back 
    95104