paularmstrong/swig — pull request #129 by nsaun (2012-10-18 08:35:12+00:00)
Title: Added support for nested block inheritance to Swig

Hi Paul!

Here's a pull request for my implementation of nested block handling for Swig.

**This branch includes:**
-Support for nested block inheritance
-Unit tests covering the nested block inheritance
-Fix for express demo server.js to work with latest version of express
-Additional demo views under express examples

**State:**
Unit tests passing including new nested unit tests.

**Known issues:**
I recommend taking a look at the interface for compile() within parser.js. An argument named parentBlock has been eliminated from the compile() function interface. Unfortunately, this compile interface is an exported interface and could have been used to create custom tags. I didn't want to change the interface as I'm not sure how far-reaching of an impact this would have. You may choose to clean up the interface and eliminate the argument, but I left the deprecated argument there so that you can make the call when doing a merge.

Let me know if you have any issues and I'll be happy to support.

Thanks,
Nick