Skip to content

Usage of layout macro with StringLoader doesn't throw any error #129

@janedbal

Description

@janedbal

Following code will render into string ../@layout.latte.

$contents = '{layout ../@layout.latte} foo';
$engine = new \Latte\Engine();
$engine->setLoader(new \Latte\Loaders\StringLoader());
echo $engine->renderToString($contents); // ../@layout.latte

I think there should be some error produced, doesn't it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions