Skip to content

Commit

Permalink
Merge branch 'main' into fr/changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioRosado committed Feb 29, 2024
2 parents 819c4bb + 7675dae commit e7c11ed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pyscript/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import typer
from rich.console import Console

LATEST_PYSCRIPT_VERSION = "2023.11.2"
LATEST_PYSCRIPT_VERSION = "2024.2.1"
APPNAME = "pyscript"
APPAUTHOR = "python"
DEFAULT_CONFIG_FILENAME = ".pyscriptconfig"
Expand Down
15 changes: 10 additions & 5 deletions src/pyscript/templates/basic.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<title>{{ title }}</title>

<!-- Recommended meta tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">

<link rel="stylesheet" href="https://pyscript.net/releases/{{ pyscript_version }}/core.css">
<script type="module" src="https://pyscript.net/releases/{{ pyscript_version }}/core.js"></script>
</head>
<body>
<script type="py" src="./{{ python_file_path }}" config="./{{ config_file_path }}"></script>
</body>
</head>
<body>
<script type="py" src="./{{ python_file_path }}" config="./{{ config_file_path }}" terminal></script>
</body>
</html>
2 changes: 1 addition & 1 deletion tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def check_project_files(
with html_file_path.open() as fp:
contents = fp.read()
assert (
f'<script type="py" src="./{python_file}" config="./{config_file}">'
f'<script type="py" src="./{python_file}" config="./{config_file}" terminal>'
in contents
)

Expand Down

0 comments on commit e7c11ed

Please sign in to comment.