Artifact f602e242ddef365b6e9c1925531180e56007ccc8471b3c0028cfc97665fff156:

Wiki page [type] by mario on 2018-07-03 20:16:47.
D 2018-07-03T20:16:47.928
L type
N text/x-markdown
U mario
W 886
## # type:

One "core" field of [PMD](wiki/Plugin+Meta+Data) is the `type:` specifier in
each script:

    # type: io

It's meant to be used by common "hook" plugin systems. Albeit it can be
entirely decorational again.

  * Some apps might declare a few special values like `init` or `core`,
    and ignore all the rest.

  * Other plugin systems might utilize `sidebar` or `post-form` to tie
    scripts to specific invocation points already.

  * Or could just be a superset of [category:](wiki/category), and not
    be used any further.

Some application API and plugin needs will instead use manual per-script
code to register themselves. In which case this field would only be used
for plugin installation e.g.

Others might even combine `type:` and `category:` or additionally a custom
`class:` and `function:` field for feature lookup/invocation.


## common script types

...

Z d34d04bc9a4e21d6d88ddd185454bb81