MCPcopy
hub / github.com/pallets/jinja / temporary_identifier

Method temporary_identifier

src/jinja2/compiler.py:384–387  ·  view source on GitHub ↗

Get a new unique identifier.

(self)

Source from the content-addressed store, hash-verified

382 raise TemplateAssertionError(msg, lineno, self.name, self.filename)
383
384 def temporary_identifier(self) -> str:
385 """Get a new unique identifier."""
386 self._last_identifier += 1
387 return f"t_{self._last_identifier}"
388
389 def buffer(self, frame: Frame) -> None:
390 """Enable buffering for the frame from that point onwards."""

Callers 6

bufferMethod · 0.95
pull_dependenciesMethod · 0.95
visit_TemplateMethod · 0.95
visit_ForMethod · 0.95
visit_OverlayScopeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected