component supports templates now
Merge pull request #24 from jonathanong/templates

component supports templates now