added the ability to pass functions as templates for collection rendering
Merge pull request #2 from gobengo/collection-template

added the ability to pass functions as templates for collection renderin...