Add Portals (#17306)

* Add Portals

* Add Portals
This commit is contained in:
Juan Carlos
2021-03-09 08:22:54 -03:00
committed by GitHub
parent cc37fee0ab
commit 4d0b87a5cd
2 changed files with 6 additions and 0 deletions

View File

@@ -207,6 +207,8 @@ provided by the operating system.
- Added `jscore.debugger` to [call any available debugging functionality, such as breakpoints.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger)
- Added `htmlgen.portal` for [making "SPA style" pages using HTML only.](https://web.dev/hands-on-portals)
## Language changes

View File

@@ -613,6 +613,10 @@ macro wbr*(e: varargs[untyped]): untyped =
## Generates the HTML `wbr` element.
result = xmlCheckedTag(e, "wbr", commonAttr, "", true)
macro portal*(e: varargs[untyped]): untyped =
## Generates the HTML `portal` element.
result = xmlCheckedTag(e, "portal", "width height type src disabled" & commonAttr, "", false)
macro math*(e: varargs[untyped]): untyped =
## Generates the HTML `math` element. MathML https://wikipedia.org/wiki/MathML