Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

handle libraries (other than taipy) in HTML renderer #1000

Merged
merged 3 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/taipy/gui/_renderers/_html/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ class _HtmlFactory(_Factory):
def create_element(gui, namespace: str, control_type: str, all_properties: t.Dict[str, str]) -> t.Tuple[str, str]:
builder_html = _Factory.call_builder(gui, f"{namespace}.{control_type}", all_properties, True)
if builder_html is None:
return f"<div>INVALID SYNTAX - Control is '{namespace}:{control_type}'", "div"
return f"<div>INVALID SYNTAX - Control is '{namespace}:{control_type}'</div>", "div"
return builder_html # type: ignore
2 changes: 1 addition & 1 deletion src/taipy/gui/_renderers/_html/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def append_data(self, data: str) -> None:
def parse_taipy_tag(self) -> None:
tp_string, tp_element_name = self.taipy_tag.parse(self._gui)
self.append_data(tp_string)
self.tag_mapping[f"taipy:{self.taipy_tag.control_type}"] = tp_element_name
self.tag_mapping[f"{self.taipy_tag.namespace}:{self.taipy_tag.control_type}"] = tp_element_name
self.taipy_tag = None

def get_jsx(self) -> str:
Expand Down