mirror of
https://github.com/LucasVbr/LucasVbr.git
synced 2026-05-13 17:11:52 +00:00
11 lines
260 B
Python
11 lines
260 B
Python
class Template:
|
|
|
|
def __init__(self, template_path: str):
|
|
self.template_path = template_path
|
|
|
|
def render(self, **kwargs):
|
|
with open(self.template_path, 'r') as f:
|
|
template = f.read()
|
|
|
|
return template.format(**kwargs)
|