Calling external functions from Meteor Template helpers

I’m having trouble understanding how to build complex template components. I’ve come from an Angular background… so am thinking something like a directive.

Cross-posted here: http://stackoverflow.com/questions/31097446/calling-external-functions-from-meteor-template-helpers