How to get the template which not compiled?

i read the document says that we can defined a global variabls when f7 init.and when we update my template we can use compile(date) method。is right? and use this way my event will lose。 is there other more usefull way to update template data after do a ajax request?thank you