Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ get_template_key
Method
get_template_key
tools/inspector_protocol/jinja2/loaders.py:458–459 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
456
457
@staticmethod
458
def
get_template_key(name):
459
return
'tmpl_'
+ sha1(name.encode(
'utf-8'
)).hexdigest()
460
461
@staticmethod
462
def
get_module_filename(name):
Callers
2
load
Method · 0.95
get_module_filename
Method · 0.45
Calls
1
encode
Method · 0.80
Tested by
no test coverage detected