koding/kd — pull request #35 by burakcan (2014-05-31 16:34:54+00:00)
Title: Added basic html template element view

Usage example

```

buttonTemplate = new KDTemplateView
markup : """

"""
styles : """

:host {
border-radius : 4px;
color : #fff;
height : 34px;
line-height : 34px;
border : none;
shadow : none;
outline : none;
padding : 0 9px 0 0
}

:host(.red) { background : red }
:host(.green) { background : green }

.icon {
display : block;
float : left;
width : 16px;
height : 16px;
margin : 9px;
background : yellow
}

"""

button = new KDCustomHTMLView
partial : 'hey i am a button'
tagName : 'button'
cssClass: 'red'

buttonTemplate.applyTo button

```