These are chat archives for ractivejs/ractive

Oct 2015
aris alexis
Oct 02 2015 18:18
any ideas about how to block rendering until i get rest data from the server from within the view? oninit i get the data but i don't want it to render anything yet. best practice? is it bad to do so? i can have an empty template and when i receive the data load the template and the data object and call render() manually?
i could always render the div and then append the data in a container element sure. i wonder what others are doing hmm?
Oct 02 2015 19:36
i've used conditional blocks to do this: {{#if loading}} <blink>LOADING...</blink> {{else}} render view here {{/if}}