Class: Octopress::Hooks::Page
- Inherits:
-
Jekyll::Plugin
- Object
- Jekyll::Plugin
- Octopress::Hooks::Page
- Defined in:
- lib/octopress-hooks.rb
Overview
Extended plugin type that allows the plugin to be called on varous callback methods.
Direct Known Subclasses
Instance Method Summary collapse
-
#post_render(post) ⇒ Object
Called after the post is rendered with the converter.
-
#post_write(post) ⇒ Object
Called after the post is written to the disk.
-
#pre_render(post) ⇒ Object
Called before post is sent to the converter.
Instance Method Details
#post_render(post) ⇒ Object
Called after the post is rendered with the converter. Use the post object to modify it’s contents before the post is inserted into the template.
23 24 |
# File 'lib/octopress-hooks.rb', line 23 def post_render(post) end |
#post_write(post) ⇒ Object
Called after the post is written to the disk. Use the post object to read it’s contents to do something after the post is safely written.
30 31 |
# File 'lib/octopress-hooks.rb', line 30 def post_write(post) end |
#pre_render(post) ⇒ Object
Called before post is sent to the converter. Allows you to modify the post object before the converter does it’s thing
16 17 |
# File 'lib/octopress-hooks.rb', line 16 def pre_render(post) end |