[avoiding template repetition when using ajax] > Correct. And ajax_save.mako prints the same string I already needed to > print in index.mako because the page needs to look like before - just with > the altered text.
What about having the Main Template (index.mako) with an empty Div and fetch the initial context using AJAX and ajax_save.mako? You will have two HTTP-Requests and a slight delay on the initial rendering of the page, but you spare yourself the double work. Alternativly you could include (sorry i don't know if mako can do this) ajax_save.mako from index.mako (if you transfer full HTML Fragments and no JSON). Another Alternative is the usage of hinclude http://www.mnot.net/javascript/hinclude/ Greetings Christoph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
