javascript - How to force Template.dynamic to re render -


i read , tried lots of solution wasn't able force template.dynamic render again.

in html >>

<body>     {{> template.dynamic template=template}} </body> 

in meteor.isclient >>

template.body.helpers({     'template': function() {       return page.template;     }   }); 

i have function on hashchange event change value of page.template, event works fine , value changed every time, can't force template.dynamic render again.

page.template string

i have function page.gettemplate() > return page.template try options

i'm using last version of meteor 1.1.0.2

i not sure how app organized should easy task. use reactivevar save active template-name wish have selected.

i made simple meteorpad you. looking for.

http://meteorpad.com/pad/ophk4kqjisztrsa9k/simpledynamictemplateswitch

cheers tom


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -