mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-13 16:00:37 -05:00
Restore the when decorator and HTML (#1691)
* restore HTML code in display module * restore when decorator code in event_handling module * add when and HTML at pyscript import level * add test for display with HTML * add quick manual test for when --------- Co-authored-by: Fabio Pliger <fpliger@anaconda.com>
This commit is contained in:
16
pyscript.core/test/test_display_HTML.html
Normal file
16
pyscript.core/test/test_display_HTML.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>PyScript Next: Display HTML</title>
|
||||
<link rel="stylesheet" href="../dist/core.css">
|
||||
<script type="module" src="../dist/core.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<py-script>
|
||||
from pyscript import display, HTML
|
||||
display(HTML('<p><label style="color: red;">hello</label> world</p>'))
|
||||
</py-script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user