duncan3dc / blade

Use Blade templates without the full Laravel framework
Apache License 2.0
144 stars 36 forks source link

Ability to add extensions to compiler #5

Closed riadloukili closed 8 years ago

riadloukili commented 8 years ago

Ability to add extensions to compiler through extend() method

duncan3dc commented 8 years ago

@riadloukili Thanks :+1:

duncan3dc commented 8 years ago

This is available in release 3.1.0

rafatrace commented 7 years ago

Any documentation on how to create new extension? Thanks

riadloukili commented 7 years ago

It's as simple as 1-2-3, just checkout this question http://stackoverflow.com/questions/13002626/laravels-blade-how-can-i-set-variables-in-a-template and you'll figure it out.. Basically, call extend method on blade instance. 😅

duncan3dc commented 7 years ago

@ptraceur It's often better to use the directive() approach to add extra functionality

rafatrace commented 7 years ago

Thanks to both 😄