added renderPartial helper function
Merge pull request #4 from pwalczyszyn/master

added renderPartial helper function