this is not a change that is meant to be merged,

it just shows a complication an infrequent issue with templito

Steps to reproduce the issue:
$ for x in {1..1000}; do echo $i && bin/templito src_templates compiled_templates && node test_output.js || exit; done
1
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   Trying to compile templates...
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/boob.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/foo.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/mom.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/poop.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/zoom.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/bar.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   Done.
2
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   Trying to compile templates...
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/boob.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/mom.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/foo.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/poop.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/zoom.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   src_templates/foo/bar.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:26 GMT-0700 (PDT)   Done.
3
Fri Apr 11 2014 17:18:27 GMT-0700 (PDT)   Trying to compile templates...
Fri Apr 11 2014 17:18:27 GMT-0700 (PDT)   src_templates/foo/boob.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:27 GMT-0700 (PDT)   src_templates/foo/foo.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:27 GMT-0700 (PDT)   src_templates/foo/mom.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:27 GMT-0700 (PDT)   src_templates/foo/poop.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:27 GMT-0700 (PDT)   src_templates/foo/zoom.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:27 GMT-0700 (PDT)   src_templates/foo/bar.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:27 GMT-0700 (PDT)   Done.
.
.
.
85
Fri Apr 11 2014 17:18:28 GMT-0700 (PDT)   Trying to compile templates...
Fri Apr 11 2014 17:18:28 GMT-0700 (PDT)   src_templates/foo/boob.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:28 GMT-0700 (PDT)   src_templates/foo/foo.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:28 GMT-0700 (PDT)   src_templates/foo/mom.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:28 GMT-0700 (PDT)   src_templates/foo/poop.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:28 GMT-0700 (PDT)   src_templates/foo/zoom.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:28 GMT-0700 (PDT)   src_templates/foo/bar.html -> compiled_templates/foo.js
Fri Apr 11 2014 17:18:28 GMT-0700 (PDT)   Done.

undefined:5
App.SrcTemplates.Foo.boob = function(obj){
                ^
TypeError: Cannot read property 'Foo' of undefined
    at Object.eval (eval at <anonymous> (/Users/huan/Documents/templito/test_output.js:4:20), <anonymous>:5:17)
    at Object.<anonymous> (/Users/huan/Documents/templito/test_output.js:4:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

looking at the output foo.js we see that the namespace is defined after the functions
$ cat complication_issue/compiled_templates/foo.js

/* WARNING: This file was automatically generated by templito.
 * Do not manually edit this file if you plan to continue using templito.
 */

App.SrcTemplates.Foo.boob = function(obj){
var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
with(obj||{}){
__p+='<div></div>\n';
}
return __p;
};

App.SrcTemplates || (App.SrcTemplates = {});
App.SrcTemplates.Foo || (App.SrcTemplates.Foo = {});