miripiruni/frontdesk — pull request #88 by mistadikay (2014-03-16 13:57:33+00:00)
Title: live HTTP headers firefox plugin, cnCt template engine

**live HTTP headers** is an everyday-use tool, hepls to figure out what's actually going on between your website and the server. Especially useful when you use CORS in the project.

**cnCT** is a super fast yet simple template engine. It doesn't parse strings and pastes result to `element.innerHTML` like most of template engines do. Instead, it creates DOM-elements from JSON-based templates with native methods like `document.createElement`. And the best part is that you don't have to search for elements because you can access them even before any HTML is built. Check out the example:

```javascript
(function(){
var cnct = cnCt,
templates = {
user: function() {
return {c: 'user', C: [
{c: 'icon', n: 'userIcon'},
{c: 'name', n: 'userName', t: 'Denis'}
]};
}
},
build,
$userRoot,
$userIcon,
$userName;

cnct.bindTemplates(templates);

// creates user block and immediately appends it do the body (it's totally optional, you can append later)
build = cnct.tp('user', document.body);

// links to DOM-elements
$userRoot = build.r;
$userIcon = build.userIcon;
$userName = build.userName;
})();