 
           break
 
-        value = template.slice(lastIndex, index).trim()
+        value = template.slice(lastIndex, index)
         tokens.push type: @types.binding, value: value
-        lastIndex = index + delimiterOffset
+        lastIndex = index + delimiters[1].length
 
     tokens

  @parse: (template, delimiters) ->
    tokens = []
    length = template.length
    delimiterOffset = delimiters[1].length
    index = 0
    lastIndex = 0


        if index > 0 and lastIndex < index
          tokens.push type: @types.text, value: template.slice lastIndex, index

        lastIndex = index + delimiters[0].length
        index = template.indexOf delimiters[1], lastIndex

        if index < 0
          substring = template.slice lastIndex - delimiters[1].length
          lastToken = tokens[tokens.length - 1]

          if lastToken?.type is @types.text
