Example plugins
Seven complete plugins for site/extend/plugins, ordered by complexity.
- Random Page – event listener, page list, page segments.
- GitHub Gist – Twig function, HTML escaping.
- MathJax Renderer – config defaults, Twig filter, assets.
- Grid System – event priority, regex replacement, config.
- Disqus Comments – Twig template, configurable template path.
- Video Embeds – two Twig functions, shared template, input validation.
- Lipsum Generator – helper class, several Twig functions.
Copy a directory into site/extend/plugins, add its name to enabledPlugins, and run herbie clear-files outside debug mode.