Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
janedbal opened this issue Aug 9, 2016 · 2 comments
Closed

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

janedbal opened this issue Aug 9, 2016 · 2 comments

Comments

@janedbal
Copy link

@janedbal janedbal commented Aug 9, 2016

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?

@dg

This comment has been minimized.

Copy link
Member

@dg dg commented Aug 9, 2016

I agree. Can you send PR?

@janedbal

This comment has been minimized.

Copy link
Author

@janedbal janedbal commented Aug 9, 2016

I'm afraid I will not find time for it. I do not see into latte so much.

@dg dg closed this in 2babced Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.