comparison markup/template.py @ 152:cdb2a1f930e2 trunk

Add some tests for relative template includes (see #27).
author cmlenz
date Wed, 16 Aug 2006 10:25:15 +0000
parents d35688d16831
children fc2ff46d1ae3
comparison
equal deleted inserted replaced
151:fb71efbd6ad4 152:cdb2a1f930e2
1004 Template instances are cached: requesting a template with the same name 1004 Template instances are cached: requesting a template with the same name
1005 results in the same instance being returned: 1005 results in the same instance being returned:
1006 1006
1007 >>> loader.load(os.path.basename(path)) is template 1007 >>> loader.load(os.path.basename(path)) is template
1008 True 1008 True
1009
1010 >>> os.remove(path)
1009 """ 1011 """
1010 def __init__(self, search_path=None, auto_reload=False): 1012 def __init__(self, search_path=None, auto_reload=False):
1011 """Create the template laoder. 1013 """Create the template laoder.
1012 1014
1013 @param search_path: a list of absolute path names that should be 1015 @param search_path: a list of absolute path names that should be
Copyright (C) 2012-2017 Edgewall Software