HTML::Mason::ComponentSource - represents information about an component |
HTML::Mason::ComponentSource - represents information about an component
my $info = $resolver->get_info($comp_path);
Mason uses the ComponentSource class to store information about a source component, one that has yet to be compiled.
If your resolver does not support multiple component roots, this can simply be the same as the ``comp_path'' key or it can be any other id you wish.
This value will be used when constructing filesystem paths so it needs to be something that works on different filesystems. If it contains forward slashes, these will be converted to the appropriate filesystem-specific path separator.
In fact, we encourage you to make sure that your component ids have some forward slashes in them or also all of your generated object files will end up in a single directory, which could affect performance.
HTML::Mason::Component
, which is the default.
The reasoning behind using this parameter is that it helps avoid a
profusion of tiny little HTML::Mason::ComponentSource
subclasses that
don't do very much.
This is needed since a
HTML::Mason::Resolver
subclass and a
HTML::Mason::Component
subclass can be
rather tightly coupled, but they must communicate with each through
the interpreter (this may change in the future).
HTML::Mason, HTML::Mason::Admin, HTML::Mason::Component
HTML::Mason::ComponentSource - represents information about an component |