Update template.js

now replaces with regex
Update module.js

now replaces with regex
Update base.js

now replaces with regex
Merge pull request #3 from ludwigkraatz/master

replace {placeholder}'s with regex