Language: HTML
BlueprintCSS Columns on Spark View
1: <var columnClass="new [] {'span-11 column', 'span-11 column last' }" /> 2: <div each="var item in o.Items" columnClass="${lastClass[itemIndex%2]}"> 3: 4: </div>
Tags:
Description:
The itemIndex is based on the variable name... if it "var stuff in o.Stuff", the indexer would be called stuffIndex. Great and makes it amazingly simple to keep column classes inline with BlueprintCSS.
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

