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

Why using Twig instead of Blade? #863

Closed
Whyounes opened this issue Jan 4, 2015 · 1 comment
Closed

Why using Twig instead of Blade? #863

Whyounes opened this issue Jan 4, 2015 · 1 comment

Comments

@Whyounes
Copy link

Whyounes commented Jan 4, 2015

When returning from a route i'm using

return Redirect::back()->with(['error' => $error, 'messages' => $messages]);

and inside my view i'm used to Blade as the template engine, is there something in Twig that doesn't exist in Blade? can i know the reasoning behind this choice plz? Thanks

@daftspunk
Copy link
Member

Blade is young and uncommon outside Laravel. Twig is mature and shares syntax other frameworks such as AngularJS and Django.

It is a debate that will likely continue, the solution is to take 15 minutes and learn Twig, it's not nearly as difficult as learning Blade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants