This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 163
Create plugins
Jérémie Bertrand edited this page Jan 2, 2016
·
5 revisions
You have two options to create plugin for Pretzel: reference Pretzel.Logic or use ScriptCs by installing Pretzel.ScriptCs: GitHub | Chocolatey.
After that you have to implement one of the available interfaces:
- ITransform: called after the site compilation
- IContentTransform: called during compilation for each page
- ISiteEngine + SiteEngineInfoAttribute: new template engine
- IFilter: new filter, usable in your pages
- ITag: new tag / block, usable in your pages
- IHaveCommandLineArgs: your plugins have his own command line arguments; Example
- IBeforeProcessingTransform: allow to add modify posts and pages before processing