Is it possible to execute a standard JavaScript for loop inside {[...]} ? Attempts at doing this inside a XTemplate have not worked so far. I'd like to do something like:

Code:
'    <tpl for="myItems">',
'        {[for (var i=0; i<=5; i++) { ]}
'            <tpl for="item"' + i + '>',
'                <a href={url}>{title}</a>',
'            </tpl>',
'        {[ } ]}',
'    </tpl>',