kellyredding/undies — pull request #8 by kellyredding (2012-01-31 21:00:55+00:00)
Title: stack | updated internal template engine to run generate output using a ...

...stack implementation

* the stack has 3 components: cache, stack, buffer
* cleans up a lot of messy pretty print logic in previous implementation
* nodes first get cached for processing, proxying (elements), and build collection (elements)
* after nodes have been cached and processed, they are pushed on the stack
* the stack determines pretty printing level and nested element relationships
* as nodes are pushed and popped off the stack, their start_tag, end_tag, and content values get buffered for output
* the buffer is flushed as more values are added to it