> It seems like the docs on this page [1] show how  to  test a template
> by running the controller first.  Is it possible to just feed the
> dictionary of stuff straight through to my template?
>
> I have some elaborate layout logic in my template, and I want to
> separate testing that from my elaborate controller logic.
>
> Am using TG 1.0 (kid and sqlobject).
>
> [1] http://docs.turbogears.org/1.0/Testing#testing-your-view

Sure, see http://kid-templating.org/guide.html for kid's user guide
where they explain how to feed a dictionary to a template and get the
result. You can write a separate function for this independent off
your tg app that would produce a static html output which you can save
in a file and view it in your browser.

Cheers,
Daniel

-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to