viniwrubleski / jade-php

47 stars 14 forks source link

Support include / extend #3

Open takahiro47 opened 10 years ago

takahiro47 commented 10 years ago

I'm using this npm to compile my files for Wordpress through the grunt task npm, 'grunt-jade-php'.

But cannot use extend! Help, pleeeeeeze!!

Running "jadephp:compile" (jadephp) task

Error: Jade:1

1| extends application 2| 3| block article 4| #primary.content-area

the "filename" option is required to use "extends" with "relative" paths Warning: jade php failed. Destination not written because PHP file was empty. File _application.php created. File footer.php created. File header.php created. File page.php created.

https://github.com/viniwrubleski/grunt-jade-php

dhenriet commented 10 years ago

Hi @takahiro47 ! I'am trying to use in wordpress too. I tried https://github.com/viniwrubleski/grunt-jade-php and have same error for extends and include with relative path and can not find how to set absolute path ? Did you find another solution ? I've seen http://jarednova.github.io/timber/ but there is no jade indentation and it uses Twig template.

I think there is no support and "jade-php" or "grunt-jade-php" are unnecessary if we can't use the power of extends and include... I am going to look http://slim-lang.com/ and try to find a grunt php package...