MCPcopy Index your code
hub / github.com/nodejs/node / join_path

Method join_path

tools/inspector_protocol/jinja2/environment.py:782–792  ·  view source on GitHub ↗

Join a template with the parent. By default all the lookups are relative to the loader root so this method returns the `template` parameter unchanged, but if the paths should be relative to the parent template, this function can be used to calculate the real template

(self, template, parent)

Source from the content-addressed store, hash-verified

780 reraise(exc_type, exc_value, tb)
781
782 def join_path(self, template, parent):
783 """Join a template with the parent. By default all the lookups are
784 relative to the loader root so this method returns the `template`
785 parameter unchanged, but if the paths should be relative to the
786 parent template, this function can be used to calculate the real
787 template name.
788
789 Subclasses may override this method and implement template path
790 joining here.
791 """
792 return template
793
794 @internalcode
795 def _load_template(self, name, globals):

Callers 2

get_templateMethod · 0.95
select_templateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected