This gist has been deprecated and moved to a repository and published on Packagist:
mcaskill/sage-theme-wrapper
Add the following filter to your theme's functions.php
:
<?php
add_filter('template_include', function ($main) {
if (!is_string($main) || !(string) $main) {
return $main;
}
return \Roots\Sage\template_wrap(new \Roots\Sage\Template\Wrapper(basename($main)));
}, 109);