https://github.com/petdance/template-plugin-package
Template::Plugin::Package -- Allow calling functions in arbitrary packages
https://github.com/petdance/template-plugin-package
Last synced: about 2 months ago
JSON representation
Template::Plugin::Package -- Allow calling functions in arbitrary packages
- Host: GitHub
- URL: https://github.com/petdance/template-plugin-package
- Owner: petdance
- Created: 2024-03-12T02:23:31.000Z (about 1 year ago)
- Default Branch: dev
- Last Pushed: 2024-03-12T04:35:06.000Z (about 1 year ago)
- Last Synced: 2025-01-17T00:53:03.656Z (3 months ago)
- Language: Perl
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
Template::Plugin::Package - allow calling of class methods on arbitrary classes that do not accept the class name as their first argument.
# SYNOPSIS
[% USE foo = Package('Foo') %]
[% foo.bar('arguments', 'to', 'bar') %]# DESCRIPTION
Template::Plugin::Package allows you to call functions in arbitrary
packages much like Template::Plugin::Class does, but the methods are called
without the package class name as the first parameter.Use Template::Plugin::Package to call class methods that in normal Perl
code require '::' to call.Use Template::Plugin::Class to call class methods that require '->' to
call.# SEE ALSO
[Template::Plugin::Class](https://metacpan.org/pod/Template%3A%3APlugin%3A%3AClass)
# COPYRIGHT & LICENSE
Copyright 2024 Andy Lester.
This library is free software; you can redistribute it and/or modify it
under the terms of the Artistic License version 2.0.# ACKNOWLEDGEMENTS
Template::Plugin::Package is taken directly from Template::Plugin::Class.
# AUTHOR
Current maintainer: Andy Lester, ``