       when 'b-attr'
         attr.value.split(/\s*,\s*/).forEach (a) ->
           [n, v] = a.split /\s*:\s*/
-          attributes.push
+          attrs.push
             name: n
             value: get v, context
       when 'b-html'

  [_, itemName, listName] = match
  context[listName].reduce (c, item) ->
    context[itemName] = item
    c.concat renderElement({ type, name, attributes, children }, context)
  , []

module.exports = (elements, context) ->

          value: text
        ]
      else
        attrs.push { name: attr.name, value: attr.value }
  children = children.reduce (c, child) ->
    c.concat renderElement child, context
  , []
  [{ type, name, attributes: attrs, children, events }]

renderElements = (element, context) ->
  { type, name, children, attributes } = element
  attrs = attributes.filter (i) ->
    i.name isnt 'b-repeat'
  attr = getAttr element, 'b-repeat'
  match = attr.value.match /^\s*(\w+)\s*in\s*(\w+)\s*$/
