-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include a frontmatter_loaded signal.
- Loading branch information
Matt Layman
committed
Mar 17, 2015
1 parent
59cc8ca
commit f469306
Showing
6 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,7 @@ Documentation | |
configuration | ||
server | ||
composers | ||
signals | ||
templates | ||
i18n | ||
releases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Signals | ||
======= | ||
|
||
handroll fires various signals while running. These signals provide hooks | ||
for extensions to execute additional code. The list of signals is provided | ||
below. | ||
|
||
frontmatter_loaded | ||
------------------ | ||
|
||
``frontmatter_loaded`` fires whenever a file contains a front matter section | ||
(see :ref:`frontmatter`). Any handler function that connects to the signal | ||
will be called with: | ||
|
||
* ``source_file`` - The absolute path to the file containing front matter. | ||
* ``frontmatter`` - The front matter dictionary that was loaded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (c) 2015, Matt Layman | ||
"""Signals fired during execution""" | ||
|
||
from blinker import signal | ||
|
||
frontmatter_loaded = signal('frontmatter_loaded') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters