How is it possible to call function from different templates in blazeComponent?


#1

I want to call from different template in function example :

class studens extends BlazeComponent {
           average(){}
}
studens.register("templatestudens"); 
class teacher extends BlazeComponent {
           // call another template (templatestudens)  function average() ???? 
}
teacher.register("templateteacher");

#2

http://blazejs.org/guide/reusing-code.html