=for html   =head1 NAME Template::Plugin::Filter::PlantUML - A template toolkit plugin filter for encoding and processing PlantUML Diagrams using a PlantUML Server. =head1 VERSION Version 0.02 =head1 SYNOPSIS To use this plugin, you have to make sure that the Template Toolkit knows about its namespace. my $tt2 = Template->new({ PLUGIN_BASE => 'Template::Plugin::Filter', }); # or my $tt2 = Template->new({ PLUGINS => { PlantUML => 'Template::Plugin::Filter::PlantUML', }, }); Then you C your plugin in a template file as follows. [% USE 'http://www.plantuml.com/plantuml' 'svg' -%] [% url = FILTER plantuml %] Bob -> Alice : hello [% END %] Finally process your template. $tt2->process('foo.tt2') || die $tt2->error(); Result would be: =head1 EXAMPLE =begin HTML

Example

=end HTML =head1 DESCRIPTION This is a trivial Template::Toolkit plugin filter to allow any template writer to embed PlantUML Diagram Syntax in Templates and have them encoded and processed via any PlantUML Server in any supported formats. It uses C remote client under the hood. =head1 SUBROUTINES/METHODS =head2 init defines init() method. =head2 filter defines filter() method. =head1 AUTHOR Rangana Sudesha Withanage, C<< >> =head1 BUGS Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. =head1 SUPPORT You can find documentation for this module with the perldoc command. perldoc Template::Plugin::Filter::PlantUML You can also look for information at: =over 4 =item * RT: CPAN's request tracker (report bugs here) L =item * GitHub Repository L =item * CPAN Ratings L =item * Search CPAN L =back =head1 ACKNOWLEDGEMENTS Many thanks to Andy Wardley L for his awesome L =head1 LICENSE AND COPYRIGHT This software is copyright (c) 2019 by Rangana Sudesha Withanage. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.