Skip to content

Commit

Permalink
Added documentation for onTwigLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanMPierson committed Jul 15, 2018
1 parent 96441f0 commit e9ea1fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/04.plugins/03.event-hooks/docs.md
Expand Up @@ -37,6 +37,7 @@ Most events within Grav fire in a specific order and it is important to understa
1. [onBeforeDownload](../event-hooks#onBeforeDownload)
1. [onPageFallBackUrl](../event-hooks#onPageFallBackUrl)
2. [onMediaLocate](../event-hooks#onMediaLocate)
1. [onTwigLoader](../event-hooks#onTwigLoader)

## Core Grav Event Hooks

Expand Down Expand Up @@ -229,3 +230,7 @@ If a route is not recognized as a page, Grav tries to access a page media asset.
#### onMediaLocate

Adds support for custom media locations for excerpts.

#### onTwigLoader

Adds support for use of namespaces in conjunction with two new methods in Twig class: `Twig::addPath($path, $namespace)` and `Twig::prependPath($path, $namespace)`.

0 comments on commit e9ea1fd

Please sign in to comment.