martindevans/LCARS — pull request #40 by martindevans (2014-12-13 00:56:08+00:00)
Title: Feature/html import

This builds upon my previous PR with custom element

Previously had attributes which defined the shoulders, e.g:

This kinda sucks, it's impossible to put any content into the shoulder except a label (what is a label? oh well it's text in a h1, you get no choice!). Also, column definitions were getting pretty big!

I've added a new element and removed the old attribute system:

Hello

This example is exactly the same as the attribute based system above. Whether or not an elbow is a top or bottom element is defined by it's position - if it has no preceding siblings then it is a top element, if it has no following siblings it is a bottom.

Updated elbows-demo.html upgraded to show this new usage and also the first column in index.html (probably need to do the rest too soon).

## Important!
Unfortunately this required using jQuery because. Zepto does not implement the "nextUntil" function on selectors which was required for querying sibling elements. Obvious solution is to submit a PR to Zepto, or at the very least submit an issue to Zepto.