You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make module_directory argument accept string template #14
the modulename_callable argument lets you send a callable which takes (filename, uri) as arguments, and you return the full filename of the module filename youd like generated. that grants maximum flexibility. for a Template by itself, you can send the "module_filename" argument which is just a string (it makes no sense for the Template to take a callable when the exact filename of the template is known).
Activity
sqlalchemy-bot commentedon Jan 21, 2007
Michael Bayer (@zzzeek) wrote:
Ok heres how I did it. the goals were:
So to achieve the effect you want, youd do this:
the
modulename_callableargument lets you send a callable which takes(filename, uri)as arguments, and you return the full filename of the module filename youd like generated. that grants maximum flexibility. for a Template by itself, you can send the "module_filename" argument which is just a string (it makes no sense for the Template to take a callable when the exact filename of the template is known).sqlalchemy-bot commentedon Jan 21, 2007
Changes by Michael Bayer (@zzzeek):