var parser = require('./templatestring.js');


parseTemplate("hi ${user.name}, you ${status}... ${asdf}", {user: {name: "KC"}, "user.name": "Oops", asdf:"blrrrgh", status: "won"});


parseTemplate("hi ${user.name}, you ${status}... ${asdf}", {user: {name: "KC"}, "user.name": "Oops", asdf:"blrrrgh", status: "won"});
@@ -1,12 +1,20 @@
 var 
+template
 parser =
@@ -51,274 +51,175 @@
 );%0A%0A
-%0AparseT
+var t
 emplate
-(
+ = 
 %22hi $%7B
-user.
 name%7D, 
-you $%7Bstatus%7D... $%7Basdf%7D%22, %7Buser: %7Bname: %22KC%22%7D, %22user.
+I'm $%7Bmodule.name%7D%22%0Avar obj = %7Bname: %22User%22, module: %7B
 name
-%22
 : %22
-Oops%22, asdf:%22blrrrgh%22, status: %22won%22%7D);%0A%0A%0AparseTemplate(%22hi $%7Buser.name%7D, you $%7Bstatus%7D... $%7Basdf%7D%22, %7Buser: %7Bname: %22KC%22%7D, %22user.name%22: %22Oops%22, asdf:%22blrrrgh%22, status: %22won%22%7D
+templateparser%22, description: %22foo%22%7D%7D;%0Aconsole.log(templateparser(template, obj)
 );

add first test case