akhawaja / TwigView

View replacement for the default Laravel View using the Twig template engine.
11 stars 7 forks source link

Add function to access most Laravel functions #4

Closed glennjacobs closed 12 years ago

glennjacobs commented 12 years ago

I added the function twig_l to the functions list. This enables the use of most functions which accept strings as parameters etc.

Hopefully you'll think it's a good addition :-)

Cheers Glenn

glennjacobs commented 12 years ago

I forgot to include an example! Here you go...

{{ l('Form::label','password_confirmation|Confirm Password') }}

glennjacobs commented 12 years ago

I've done this a better way now, will resubmit when implemented.