Ask Your Question

Revision history [back]

There are two parts to get_file: one is in the engine, where it retrieves the file from the dict of files provided by the client. This part should work fine with the filename dynamically specified by get_param.

The other part is in the client. It parses the template looking for get_file and automatically adds any files found to the files dict, so that everything appears to work as if by magic. However, this part can't resolve get_param (there isn't a complete copy of the template parsing code in the client). So if you want to use this mechanism then you need to explicitly include the extra file yourself.