3.0 beta 2

AX.Attributes

HTML attributes collection.

var input = new AX.HTML({
    tag: 'input',
    attributes: {
        value: 123,
        title: 'Enter product price'
    }
});

or

var input = new AX.HTML({
    tag: 'input',
    value: 123,
    title: 'Enter product price',
    attributes: 'value="{{@value}}" title="{{@title}}"'
});

Via shortcut -

input.attribute('value', 456);

Can hold functions -

// define property 'text'
input.set('text', 'xyz');

// link attribute 'value' to property 'text'
input.attribute('value', function(){
    return this.text();
});

// triggers update
input.text('abc');

HTML

Included into outerHTML template.

var outerHTML = AX.template('<{{@tag}}{{@attributes}}>{{@innerHTML}}</{{@tag}}>');

Includes id, class, style attributes by default.