Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ __init__
Method
__init__
recipes/Python/496702_Templite/recipe-496702.py:7–8 ·
view source on GitHub ↗
(self, template)
Source
from the content-addressed store, hash-verified
5
delimiter = re.compile(r
"\$\{(.*?)\}\$"
, re.DOTALL)
6
7
def
__init__(self, template):
8
self.tokens = self.compile(template)
9
10
@classmethod
11
def
from_file(cls, file):
Callers
nothing calls this directly
Calls
1
compile
Method · 0.95
Tested by
no test coverage detected