"""
Return the filesystem filename wanted.
"""
- return path.join(searchpath, path.sep.join([p for p in name.split('/')
- if p and p[0] != '.']))
+ return path.join(searchpath, *[p for p in name.split('/')
+ if p and p[0] != '.'])
def get_cachename(cachepath, name, salt=None):
env = Environment(loader=filesystem_loader)
tmpl = env.get_template('test.html')
assert tmpl.render().strip() == 'BAR'
+ tmpl = env.get_template('foo/test.html')
+ assert tmpl.render().strip() == 'FOO'
try:
env.get_template('missing.html')
except TemplateNotFound: