Show More
@@ -627,6 +627,14 b' class engine(object):' | |||||
627 | raise |
|
627 | raise | |
628 | return self._cache[t] |
|
628 | return self._cache[t] | |
629 |
|
629 | |||
|
630 | def preload(self, t): | |||
|
631 | """Load, parse, and cache the specified template if available""" | |||
|
632 | try: | |||
|
633 | self._load(t) | |||
|
634 | return True | |||
|
635 | except templateutil.TemplateNotFound: | |||
|
636 | return False | |||
|
637 | ||||
630 | def process(self, t, mapping): |
|
638 | def process(self, t, mapping): | |
631 | '''Perform expansion. t is name of map element to expand. |
|
639 | '''Perform expansion. t is name of map element to expand. | |
632 | mapping contains added elements for use during expansion. Is a |
|
640 | mapping contains added elements for use during expansion. Is a |
General Comments 0
You need to be logged in to leave comments.
Login now