{
    "content": [
        {
            "type": "text",
            "text": "# HTML::Mason::ComponentSource (perldoc)\n\n## NAME\n\nHTML::Mason::ComponentSource - represents information about an component\n\n## SYNOPSIS\n\nmy $info = $resolver->getinfo($comppath);\n\n## DESCRIPTION\n\nMason uses the ComponentSource class to store information about a source component, one that has\nyet to be compiled.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "HTML::Mason::ComponentSource",
        "section": "",
        "mode": "perldoc",
        "summary": "HTML::Mason::ComponentSource - represents information about an component",
        "synopsis": "my $info = $resolver->getinfo($comppath);",
        "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": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 71,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "HTML::Mason::ComponentSource - represents information about an component\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "my $info = $resolver->getinfo($comppath);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Mason uses the ComponentSource class to store information about a source component, one that has\nyet to be compiled.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new This method takes the following arguments:\n\n*   comppath\n\nThe component's component path.\n\n*   lastmodified\n\nThis is the last modification time for the component, in Unix time (seconds since the\nepoch).\n\n*   compid\n\nThis is a unique id for the component used to distinguish two components with the same\nname in different component roots.\n\nIf your resolver does not support multiple component roots, this can simply be the same\nas the \"comppath\" key or it can be any other id you wish.\n\nThis value will be used when constructing filesystem paths so it needs to be something\nthat works on different filesystems. If it contains forward slashes, these will be\nconverted to the appropriate filesystem-specific path separator.\n\nIn fact, we encourage you to make sure that your component ids have some forward slashes\nin them or also all of your generated object files will end up in a single directory,\nwhich could affect performance.\n\n*   compclass\n\nThe component class into which this particular component should be blessed when it is\ncreated. This must be a subclass of \"HTML::Mason::Component\", which is the default.\n\n*   friendlyname\n\nThis is used when displaying error messages related to the component, like parsing\nerrors. This should be something that will help whoever sees the message identify the\ncomponent. For example, for component stored on the filesystem, this should be the\nabsolute path to the component.\n\n*   sourcecallback\n\nThis is a subroutine reference which, when called, returns the component source.\n\nThe reasoning behind using this parameter is that it helps avoid a profusion of tiny\nlittle \"HTML::Mason::ComponentSource\" subclasses that don't do very much.\n\n*   extra\n\nThis optional parameter should be a hash reference. It is used to pass information from\nthe resolver to the component class.\n\nThis is needed since a \"HTML::Mason::Resolver\" subclass and a \"HTML::Mason::Component\"\nsubclass can be rather tightly coupled, but they must communicate with each through the\ninterpreter (this may change in the future).\n\ncomppath\nlastmodified\ncompid\ncompclass\nfriendlyname\nextra\nThese are all simple accessors that return the value given to the constructor.\n\ncompsource\nReturns the source of the component.\n\nobjectcode ( compiler => $compiler )\nGiven a compiler, this method returns the object code for the component.\n\nHTML::Mason, HTML::Mason::Admin, HTML::Mason::Component\n",
                "subsections": []
            }
        }
    }
}