On May 17, 2007, at 11:36 PM, Bill wrote:
> > I'm running Pylons-0.9.5 / Mako-0.1.5 and would like to view the > Python code generated from my Mako templates as a debugging tool. The > Mako docs describe options to cache templates to disk using something > like this: > <%page cached="True" cache_type="file" cache_dir="/home/bill/FormTest/ > data"/> > > I've put the above line in a Mako template but I can't find the > generated Python file. Is there a better way to view the Python code > generated from Mako templates? > Pylons sets up the cache dir for Mako automatically (from the cache_dir directory in your ini file). So there's no need for specifying the cache information in your template unless you want to override the Pylons settings. They'll be in YOURPROJ/data/templates dir. -- Philip Jenvey --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
