использовать так:
var wrongField= TT.string( 'field "{0}" is not found' )
..
throw wrongField([ 'xxx' ])
var makeUserTagLink= TT.uri( '/user/{user}/tag/{tag}' )
..
location.href= makeUserTagLink({ user: 'tenshi', tag: 'xxx' })
var makeContent= TT.dom( '<h1>{title}</h1><p>{text}</p>' )
..
contentNode.appendChild( makeContent({ ttle: 'xxx', text: 'xxx not found' }) )
скачать:
http://bca07c6c88b166729f9741ef748fc...oject/tt/tt.js - 2.5кило