{
    "content": [
        {
            "type": "text",
            "text": "# Template::Plugin::Assert (perldoc)\n\n## NAME\n\nTemplate::Plugin::Assert - trap undefined values\n\n## SYNOPSIS\n\n[% USE assert %]\n# throws error if any undefined values are returned\n[% object.assert.method %]\n[% hash.assert.key %]\n[% list.assert.item %]\n\n## DESCRIPTION\n\nThis plugin defines the \"assert\" virtual method that can be used to automatically throw errors\nwhen undefined values are used.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **AUTHOR**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Template::Plugin::Assert",
        "section": "",
        "mode": "perldoc",
        "summary": "Template::Plugin::Assert - trap undefined values",
        "synopsis": "[% USE assert %]\n# throws error if any undefined values are returned\n[% object.assert.method %]\n[% hash.assert.key %]\n[% list.assert.item %]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Template::Plugin::Assert - trap undefined values\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "[% USE assert %]\n\n# throws error if any undefined values are returned\n[% object.assert.method %]\n[% hash.assert.key %]\n[% list.assert.item %]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This plugin defines the \"assert\" virtual method that can be used to automatically throw errors\nwhen undefined values are used.\n\nFor example, consider this dotop:\n\n[% user.name %]\n\nIf \"user.name\" is an undefined value then TT will silently ignore the fact and print nothing. If\nyou \"USE\" the \"assert\" plugin then you can add the \"assert\" vmethod between the \"user\" and\n\"name\" elements, like so:\n\n[% user.assert.name %]\n\nNow, if \"user.name\" is an undefined value, an exception will be thrown:\n\nassert error - undefined value for name\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Andy Wardley <abw@wardley.org> <http://wardley.org/>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (C) 2008 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::Plugin\n",
                "subsections": []
            }
        }
    }
}