rendering - Force handlebars template to render on demand with meteor -


how can force meteor template (handlebars template) re-render through javascript. example,

i have template (template1.html)

<template name="template1"> </template> 

i want force render template anywhere in /client directory. there in handlebars package can ?

edit: adding more details

i not having difficulties creating template first time, either through handlebars or javascript. want refresh template , cause rendered callback run again. have code fetch , show related data when template rendered.

<template name="template1">      {{each items}}       {{> template2}}      {{/each}}  <template/> 

if data in items changes understand, template1 , template2 both render happens when there data changes in template2, refresh/render template1 again?

what changing in template2 see in template 1? below refresh template1 upon insert or delete.

<template name="template1">   {{itemscount}} items   {{#each items}}   {{> template2}}   {{/each}} <template/> 

or,

    <template name="template1">       last updated: {{lastupdate}}       {{#each items}}       {{> template2}}       {{/each}}     <template/>      template.template1.lastupdate = function () {       return session.get('lastupdate');     }; 

then somewhere update data add:

    session.set('lastupdate', new date() ); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -