{
    "mode": "perldoc",
    "parameter": "Template::Plugin::Procedural",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Template%3A%3APlugin%3A%3AProcedural/json",
    "generated": "2026-10-09T12:55:18Z",
    "synopsis": "package Template::Plugin::LWPSimple;\nuse base qw(Template::Plugin::Procedural);\nuse LWP::Simple;  # exports 'get'\n1;\n[% USE LWPSimple %]\n[% LWPSimple.get(\"http://www.tt2.org/\") %]",
    "sections": {
        "NAME": {
            "content": "Template::Plugin::Procedural - Base class for procedural plugins\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "package Template::Plugin::LWPSimple;\nuse base qw(Template::Plugin::Procedural);\nuse LWP::Simple;  # exports 'get'\n1;\n\n[% USE LWPSimple %]\n[% LWPSimple.get(\"http://www.tt2.org/\") %]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"Template::Plugin::Procedural\" is a base class for Template Toolkit plugins that causes defined\nsubroutines to be called directly rather than as a method. Essentially this means that\nsubroutines will not receive the class name or object as its first argument.\n\nThis is most useful when creating plugins for modules that normally work by exporting\nsubroutines that do not expect such additional arguments.\n\nDespite the fact that subroutines will not be called in an OO manner, inheritance still function\nas normal. A class that uses \"Template::Plugin::Procedural\" can be subclassed and both\nsubroutines defined in the subclass and subroutines defined in the original class will be\navailable to the Template Toolkit and will be called without the class/object argument.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Mark Fowler <mark@twoshortplanks.com> <http://www.twoshortplanks.com>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (C) 2002 Mark Fowler <mark@twoshortplanks.com>\n\nThis module is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Template, Template::Plugin\n",
            "subsections": []
        }
    },
    "summary": "Template::Plugin::Procedural - Base class for procedural plugins",
    "flags": [],
    "examples": [],
    "see_also": []
}