netzpirat/haml-coffee — pull request #55 by mehcode (2013-02-08 09:24:40+00:00)
Title: Initial implementation of directives; include implemented.

I've started work on the directives. I've got the first bit done (having the compiler recognize directives) and implemented include. I figure it's better to do this in pieces as #50 is a bit large.

The implementation works nicely (at least in my testing) for placement in global as well as AMD (it could work for standalone too but I can add that after that PR is merged I suppose).

I attempted to follow your existing conventions around the code base when adding directives; let me know where the implementation could be improved, etc.

---

Also... I couldn't figure out how to get jasmine to unit test the include directive as two templates need to be compiled and one rendered and your testing harness only allows for one and one. Should I add more specs or do you have another idea?