comparison modules/foo.js @ 4:ae5869491e61

Added more to securablemodule impl.
author Atul Varma <varmaa@toolness.com>
date Wed, 09 Sep 2009 22:18:35 -0700
parents b6f9d743a2b5
children
comparison
equal deleted inserted replaced
3:14d8d73774d7 4:ae5869491e61
1 print('loading foo');
2
1 exports.bar = function bar() { 3 exports.bar = function bar() {
2 print('hay!'); 4 print('hay!');
3 }; 5 };
4 6
5 print('loading foo'); 7 exports.hello = 1;
8
9 require('baz').blop();
10
11 print('foo loaded.');