Closed Log1x closed 7 years ago
You can do a PR with the example you provided
$extension = apply_filters( 'papi/template_extension', '.php' );
Also it might be useful to note that you need to define your template
in Papi_Page_Type::meta()
without the extension like 'template' => 'views/papi/video',
or this won't work.
Could you add a quick filter for the
$extension
variable located at #L33 oftemplate.php
.I'd do a PR but not sure what naming scheme you want to use.
An example would be:
$extension = apply_filters( 'papi/template_extension', '.php' );
I want this filter for use of Papi in Sage 9 with Blade integration.
Example:
Works wonderfully with my filter above and a filter for
papi/template_include
such as:-- without the filter for
$extension
, mypage.blade.php
becomespage/blade.php
.I know this is a weird use-case, but it'd be much appreciated.
Thanks.