Skip to content

Commit 6b8919f

Browse files
authored
Merge pull request #4 from render-engine/update-namespace
Update namespace in pyproject.toml and resolve issue #1
2 parents 8d33860 + 18d16f9 commit 6b8919f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

render_engine_parser/base_parsers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,17 @@ def parse_content(content: str) -> tuple[dict, str]:
4848
return parse_content(content)
4949

5050
@staticmethod
51-
def parse(content: str, page=None):
51+
def parse(
52+
content: str,
53+
extras: dict[str, any] | None = None,
54+
) -> str:
5255
"""
5356
Parses content to be rendered into HTML
5457
5558
In the base parser, this returns the content as is.
5659
5760
params:
5861
content: content to be rendered into HTML
59-
page: Render Engine Page Content object to gain access to attributes
62+
extras: dictionary with extras to augment attributes
6063
"""
6164
return content

0 commit comments

Comments
 (0)