BKWLD / laravel-haml

Wraps MtHaml for ease use in Laravel
MIT License
45 stars 10 forks source link

I can't use twig filter in my haml.blade #23

Closed elyasaresya closed 7 years ago

elyasaresya commented 8 years ago

I'm using laravel 5, and this is my view (haml.blade) #{'Hello World' | lower}

I try using {{ }} but the result is same. {{ 'Export Sales System' | lower }}

and the result is

Use of undefined constant lower - assumed 'lower'

weotch commented 7 years ago

This package doesn't work with Twig AFAIK. Feel free to submit a PR that adds that support, though. Shouldn't be tough to add, just add a config var for using php or twig and then invoke MtHAML differently depending on that selection: https://github.com/arnaud-lb/MtHaml#usage