Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added Example(learning github) #2325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
Loading
from
Open
Show file tree
Hide file tree
Changes from all commits
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
30 changes: 30 additions & 0 deletions 30 Example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!doctype html>
<html lang="en">
<head>
<title>Shiny Sound</title>

<!-- Recommended meta tags -->
<meta charset="UTF-8" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI /> has no meaning in HTML, it has meanings in XHTML and XML (or JSX) but not in HTML so you never need the self closing tag because void elements never need that.

I know this is common misconception out there, I just wanted to point that out since the purpose of this PR is to learn 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the code from pyscript.com why is it not changed over there?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just created a new project in there and this is what I see:

image

<meta name="viewport" content="width=device-width,initial-scale=1.0" />

<!-- PyScript CSS -->
<link
rel="stylesheet"
href="https://pyscript.net/releases/2025.2.1/core.css"
/>

<!-- This script tag bootstraps PyScript -->
<script
type="module"
src="https://pyscript.net/releases/2025.2.1/core.js"
></script>
</head>
<body>
<script
type="py"
src="./main.py"
config="./pyscript.toml"
terminal
></script>
</body>
</html>
1 change: 1 addition & 0 deletions 1 Example/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("hello")
1 change: 1 addition & 0 deletions 1 Example/pyscript.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name = "Red Recipe"
Morty Proxy This is a proxified and sanitized view of the page, visit original site.