I use Timber for all my projects, but I would also like to start using a templating language like HAML or Pug. I found a PHP implementation of HAML called MtHaml, which supports twig. I thought this could be great if I could get it to work with Timber.
Unfortunately, while this supports a number of CMS, WordPress is not on the list. There is a project that brings MtHaml to wordpress, but it’s from 7 years ago and I haven’t yet figured out how it compiles. It looks like I have to run ./watch from command line to get it to autocompile.
I like Timber because it just compiles on the fly. I drop my twig file in the theme directory and it just works. I would like to do the same thing but with HAML + Twig (Timber). Does anyone know how I would go about this?
Alternatively, I would consider using Twig + Pug but I see even less support for this. Basically I want to get away from the traditional templating system of opening and closing tags, and move to an HTML shorthand
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com