Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
adding filename to onHandleHTML() plugin event #175
I am working on a plugin, and would like to modify the html based on the file that is being generated.
I've added a simple test case, and confirmed that the fileName is being passed in the ev.data.
This commit allows me to write plugins that do things like removing the navigation on certain pages, or adding 'active' links in the header based on a regex.
It would be nice to pass this value in all plugin events, but I really want it onHandleHTML().
Docs haven't been updated.
Version has been tagged and bumped to 0.4.4.
I'm using onHandleHTML() to add content to the header/footer, and add links to the "extends" output:
but now I can do some other things based on the page a person is on. Thanks again!