Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Added support for nested block inheritance to Swig #129

Merged
merged 18 commits into from
Oct 20, 2012

Conversation

nsaun
Copy link
Contributor

@nsaun nsaun commented Oct 18, 2012

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.

@paularmstrong
Copy link
Owner

First, this is really awesome, Nick. I've been so busy with other obligations and projects that I haven't been able to focus on swig enough. Thanks for being so thorough with tests and lint cleanup!

An argument named parentBlock has been eliminated from the compile() function interface.

It looks like you preserved the functionality that it was used for (finding the parent). I'm more than happy to just remove the argument--we're still in v0.X, so changes that break the API are be expected. Let's delete it!

I'm just going to merge this, do some cleanup, documents, fix a couple super minor issues and get this out soon!

paularmstrong added a commit that referenced this pull request Oct 20, 2012
Added support for nested block inheritance to Swig
Fixes #64
@paularmstrong paularmstrong merged commit cbd2f1b into paularmstrong:master Oct 20, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants