{
    "content": [
        {
            "type": "text",
            "text": "# Template::Constants (perldoc)\n\n## NAME\n\nTemplate::Constants - Defines constants for the Template Toolkit\n\n## SYNOPSIS\n\nuse Template::Constants qw( :status :error :all );\n\n## DESCRIPTION\n\nThe \"Template::Constants\" modules defines, and optionally exports into the caller's namespace, a\nnumber of constants used by the Template package.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **EXPORTABLE TAG SETS**\n- **AUTHOR**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Template::Constants",
        "section": "",
        "mode": "perldoc",
        "summary": "Template::Constants - Defines constants for the Template Toolkit",
        "synopsis": "use Template::Constants qw( :status :error :all );",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 22,
                "subsections": []
            },
            {
                "name": "EXPORTABLE TAG SETS",
                "lines": 45,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Template::Constants - Defines constants for the Template Toolkit\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Template::Constants qw( :status :error :all );\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The \"Template::Constants\" modules defines, and optionally exports into the caller's namespace, a\nnumber of constants used by the Template package.\n\nConstants may be used by specifying the \"Template::Constants\" package explicitly:\n\nuse Template::Constants;\nprint Template::Constants::STATUSDECLINED;\n\nConstants may be imported into the caller's namespace by naming them as options to the \"use\nTemplate::Constants\" statement:\n\nuse Template::Constants qw( STATUSDECLINED );\nprint STATUSDECLINED;\n\nAlternatively, one of the following tagset identifiers may be specified to import sets of\nconstants: '\":status\"', '\":error\"', '\":all\"'.\n\nuse Template::Constants qw( :status );\nprint STATUSDECLINED;\n\nConsult the documentation for the \"Exporter\" module for more information on exporting variables.\n",
                "subsections": []
            },
            "EXPORTABLE TAG SETS": {
                "content": "The following tag sets and associated constants are defined:\n\n:status\nSTATUSOK             # no problem, continue\nSTATUSRETURN         # ended current block then continue (ok)\nSTATUSSTOP           # controlled stop (ok)\nSTATUSDONE           # iterator is all done (ok)\nSTATUSDECLINED       # provider declined to service request (ok)\nSTATUSERROR          # general error condition (not ok)\n\n:error\nERRORRETURN          # return a status code (e.g. 'stop')\nERRORFILE            # file error: I/O, parse, recursion\nERRORUNDEF           # undefined variable value used\nERRORPERL            # error in [% PERL %] block\nERRORFILTER          # filter error\nERRORPLUGIN          # plugin error\n\n:chomp                  # for PRECHOMP and POSTCHOMP\nCHOMPNONE            # do not remove whitespace\nCHOMPONE             # remove whitespace to newline\nCHOMPALL             # old name for CHOMPONE (deprecated)\nCHOMPCOLLAPSE        # collapse whitespace to a single space\nCHOMPGREEDY          # remove all whitespace including newlines\n\n:debug\nDEBUGOFF             # do nothing\nDEBUGON              # basic debugging flag\nDEBUGUNDEF           # throw undef on undefined variables\nDEBUGVARS            # general variable debugging\nDEBUGDIRS            # directive debugging\nDEBUGSTASH           # general stash debugging\nDEBUGCONTEXT         # context debugging\nDEBUGPARSER          # parser debugging\nDEBUGPROVIDER        # provider debugging\nDEBUGPLUGINS         # plugins debugging\nDEBUGFILTERS         # filters debugging\nDEBUGSERVICE         # context debugging\nDEBUGALL             # everything\nDEBUGCALLER          # add caller file/line info\nDEBUGFLAGS           # bitmap used internally\n\n:all\nAll the above constants.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Andy Wardley <abw@wardley.org> <http://wardley.org/>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.\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, \"Exporter\"\n",
                "subsections": []
            }
        }
    }
}