Plugins¶
Hyde is built with a nuclear engine that is stripped down but powerful. Even
core features like metadata
are added as plugins to keep the engine bloat
free.
Hyde’s plugin architecture is event driven; plugins get notified during the course of the generation to allow them to alter/guide the generation process.
If you are interested in creating plugins for Hyde, you can read the developer documentation.
Configuration¶
Hyde’s plugins get loaded if they are listed in the plugins section of
Configuration. Plugins also accept additional parameters in their
respective sections. For example, MyAwesomePlugin
will get parameters from
myawesome
section in the configuration file.
In the box¶
Hyde is shipped with the following plugins:
Metadata¶
Metadata¶
AutoExtend¶
Sorter¶
-
class
hyde.ext.plugins.meta.
SorterPlugin
(site)[source]¶ Sorter plugin for hyde. Adds the ability to do sophisticated sorting by expanding the site objects to support prebuilt sorting methods. These methods can be used in the templates directly.
Configuration example:
#yaml sorter: kind: # Sorts by this attribute name # Uses `attrgetter` on the resource object attr: source_file.kind # The filters to be used before sorting # This can be used to remove all the items # that do not apply. For example, # filtering non html content filters: source_file.kind: html is_processable: True meta.is_listable: True