Use of meteor dynamic template

Hi ,
I am new in meteor. I want to know the proper way of using meteor dynamic template

I am getting data from heroku-connect at the time of rendering the template

   Meteor.call('GetJobDetail',data,function(err,result){
     	if(err){
                  alert('error')
	       }
	      else{
		JobDetail=result;
	 }
 })

I want to show the JobDetail data in my template

            <template name="JobDetail">
              <div >
             {{#with JobDetail }}
                    <span style="font-size: smaller;">{{Name}}</span>
            {{/with}}
         
        </div>
     </template>

have you already looked at these?

https://www.discovermeteor.com/blog/blaze-dynamic-template-includes/

https://themeteorchef.com/tutorials/using-dynamic-templates