Skip to content

Commit

Permalink
Fix Twig templates loading, re-evaluate view paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambe committed Apr 1, 2017
1 parent cbb4675 commit b0b7a72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ function themosis_theme_assets()
*/
$theme['view.finder']->addLocation(themosis_path('theme.resources').'views');

/*
* Update Twig Loaded registered paths.
*/
$theme['twig.loader']->setPaths($theme['view.finder']->getPaths());

/*
* Register theme public assets folder [dist directory].
*/
Expand Down

0 comments on commit b0b7a72

Please sign in to comment.