Skip to content

Commit

Permalink
chore: substitution script
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Mar 10, 2024
1 parent 3ba5eb5 commit 863c77e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/css.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ print(template.render(context={"_view": __name__}))
font-family: Lucida Console, Monaco, monospace;
}
</style>
<script id="js.examples.script">
<script type="text/javascript" id="js.examples.script">
function alertHello(user) {
alert('Hello, ' + user);
}
Expand All @@ -306,7 +306,7 @@ As you can see, the static context collects the various static resources and inc
<html>
<head>
<link href="/static/css/examples_style.css" rel="stylesheet" id="css.examples.style" />
<script src="/static/js/examples_script.js" id="js.examples.script"></script>
<script src="/static/js/examples_script.js" type="text/javascript" id="js.examples.script"></script>
</head>
<body>
<div class="textbox">
Expand Down
6 changes: 3 additions & 3 deletions docs/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ print(f"Third render: {time.perf_counter() - tick}")
```

```stdout
First render: 6.031518665999999
Second render: 0.3840445420000007
Third render: 0.3478060410000001
First render: 6.521765374999999
Second render: 0.37063745800000003
Third render: 0.35949308300000027
```
<!-- end -->

Expand Down
4 changes: 2 additions & 2 deletions docs/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ print(template.render(context={"_view": __name__}))
font-family: Lucida Console, Monaco, monospace;
}
</style>
<script id="js.examples.script">
<script type="text/javascript" id="js.examples.script">
function alertHello(user) {
alert('Hello, ' + user);
}
Expand Down Expand Up @@ -437,7 +437,7 @@ print(template.render(context={"_view": __name__}))
<html>
<head>
<link href="/static/css/examples_style.css" rel="stylesheet" id="css.examples.style" />
<script src="/static/js/examples_script.js" id="js.examples.script"></script>
<script src="/static/js/examples_script.js" type="text/javascript" id="js.examples.script"></script>
</head>
<body>
<div class="textbox">
Expand Down

0 comments on commit 863c77e

Please sign in to comment.