docs: function codeTpl () {
      	define([], function () {
      		'use strict';
      		
      		var root = document.createElement('div');
      		root.innerHTML = "{{{ html }}}";
      		
      		var templates = {};
      		for (var i = 0; i < root.childNodes.length; i++) {
      			var child = root.childNodes [i];
      			templates [child.getAttribute('tpl-name')] = child;
      			child.removeAttribute('tpl-name');
      		}
      		
      		var findMarkedNodes = function (parentNode, nodeMap) {
      			for (var i = 0; i < parentNode.childNodes.length; i++) {
      				var child = parentNode.childNodes [i];
  
      				if (child.nodeType === 1) {
      					var nodeName = child.getAttribute('tpl-node-name');
      					if (nodeName) {
      						child.removeAttribute('tpl-node-name');
      						nodeMap [nodeName] = child;
      					}
      				
      					findMarkedNodes(child, nodeMap);
      				}			
      			}
      		};
      		
      		var DOMTree = function (tplNode, templateName) {
      			var cloned = tplNode.cloneNode(true);
      			var nodeMap = {};
      			
      			findMarkedNodes({ childNodes: [cloned] }, nodeMap);
      			
      			this.getRootNode = function () {
      				return cloned;
      			};
      			
      			this.getNodeByName = function (name) {
      				if (!nodeMap [name]) {
      					console.warn('Template ' + templateName + ' node ' + name + ' not found. Applying simple polyfill.');
      					nodeMap [name] = document.createElement('div');
      					cloned.appendChild(nodeMap [name]);
      				}
      				
      				return nodeMap [name];
      			};
      			
      			this.getAllNamedNodes = function () {
      				return nodeMap;
      			};
      		};
      		
      		var Exception = function (msg) { this.toString = function () { return msg; }};
      		
      		var f = function (templateName, options) {
      			if (!templates [templateName]) {
      				console.warn('Template ' + templateName + ' not found. Applying simple polyfill.');
      				templates [templateName] = document.createElement('div');
      			}
      			
      			var domTree = new DOMTree(templates [templateName], templateName);
      			options = options || {};
      			
      			if (options.parent) {
      				options.parent.appendChild(domTree.getRootNode());
      			}
      			
      			return domTree;
      		};
      		
      		return f;
      	});
        }