opendena / jade.php

HAML-like template engine for PHP 5.3
MIT License
18 stars 0 forks source link

Filters #5

Open olanod opened 11 years ago

olanod commented 11 years ago

Another thing I didn't see if is possible, It would be nice if we could create filters and register them. Something like:

$jade = new \Jade\Jade();
$jade->register($callable);

And use them:

p
    :custom_filter
        My filtered text

also this would be great:

p
    a #{'hello' | translate}