I was wondering if i can use the static_file()
from withing a template as follows:
{{ static_file( filename, root=filepath, download=True ) }}
Can it be written like that?
And if can, then how i will be able to substitite the variables within the statement, in my case, filename
and filepath
with their values taken from the wsgi python file?
And in general, are we able to use Bottle's framework statement and functions from within a template system or we can use then from the wsgi python app?!