Skip to content

[stempler] Fatal error when including php partials that do not end with "?>" #332

@SerafimArts

Description

@SerafimArts

Description

In the case that a file was included that does not end with the ?> character, then a fatal error occurs in the resulting template.

Left column: partial file
Right column: generated code

image

How To Reproduce

  1. Create partial, like:
<!-- example.dark.php -->
<?php
echo 'Hello, I`m a partial';
  1. Create template file and include this partial:
<use:element path="xxxxx/example" as="some" />
  1. Render template file

Additional Info

Q A
Framework Version 2.6
PHP version 7.2+
Operating system Any

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions