code: function () {        
              var i, 
                  scripts = document.getElementsByTagName('script'), 
                  script,
                  trash = [];
              for (i = 0, l = scripts.length; i < l; i++) {
                  script = scripts[i];
                  if (script && script.innerHTML && script.id && (script.type === "text/html" || script.type === "text/x-icanhaz")) {
                      ich.addTemplate(script.id, trim(script.innerHTML));
                      trash.unshift(script);
                  }
              }
              for (i = 0, l = trash.length; i < l; i++) {
                  trash[i].parentNode.removeChild(trash[i]);
              }
          }
docs: grabs templates from the DOM and caches them. Loop through and add templates. Whitespace at beginning and end of all templates inside <script> tags will be trimmed. If you want whitespace around a partial, add it in the parent, not the partial. Or do it explicitly using <br/> or &nbsp;