Skip to content

Commit

Permalink
deploy: 094388a
Browse files Browse the repository at this point in the history
  • Loading branch information
KaruroChori committed Jan 8, 2025
1 parent e4d8a24 commit a60d790
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 3 deletions.
Binary file not shown.
Binary file modified latest/docs/dist/website/doxygen/latex/vs-templ_8hpp__incl.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion latest/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,5 @@

<!--
MkDocs version : 1.6.1
Build Date UTC : 2025-01-08 21:36:24.970817+00:00
Build Date UTC : 2025-01-08 21:42:26.706968+00:00
-->
2 changes: 1 addition & 1 deletion latest/docs/releases/v0.3.15/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h2 id="v0315">v0.3.15<a class="headerlink" href="#v0315" title="Permanent link"
<p>All done! The last <code>for</code> and <code>for-props</code> prop based commands have been completed.<br />
With this development of functionality for <code>vs.templ</code> is done.</p>
<p>There are minor features planned for the <code>v0.4.x</code> branch, but most will be documentation, better examples, formal XML schemas and testing infrastructure.<br />
Once that is done we are going straight to <code>v.1</code> if there are no architectural problems being discovered in the meanwhile.</p>
Once that is done we are going straight to <code>v1</code> if there are no architectural problems being discovered in the meanwhile.</p>

</div>
</div><footer>
Expand Down
2 changes: 1 addition & 1 deletion latest/docs/search/search_index.json

Large diffs are not rendered by default.

Binary file modified latest/doxygen/latex/vs-templ_8hpp__dep__incl.pdf
Binary file not shown.
Binary file modified latest/doxygen/latex/vs-templ_8hpp__incl.pdf
Binary file not shown.
41 changes: 41 additions & 0 deletions latest/wasm-demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<html>

<head>
</head>

<body>
<h1>This demo is being implemented!</h1>
<p>
It actually works, but if you don't plan on working via the web console there is not much to see :D.<br />
Please come back later :)
</p>
<script type="module">
import { WASI, File, OpenFile, ConsoleStdout, PreopenDirectory } from "https://unpkg.com/@bjorn3/[email protected]/dist";

let args = ["bin", "template.xml", "data.xml"];
let env = ["FOO=bar"];
let fds = [
new OpenFile(new File([])), // stdin
ConsoleStdout.lineBuffered(msg => console.log(`[WASI stdout] ${msg}`)),
ConsoleStdout.lineBuffered(msg => console.warn(`[WASI stderr] ${msg}`)),
new PreopenDirectory(".", [
["data.xml", new File(new TextEncoder("utf-8").encode(`<a></a>`))],
["template.xml", new File(new TextEncoder("utf-8").encode(`<b></b>`))],
]),
];
let wasi = new WASI(args, env, fds);
console.log(wasi)
const data = new Uint8Array(await (await fetch("https://github.com/lazy-eggplant/vs.templ/releases/latest/download/vs.templ.js")).arrayBuffer())

const res = new Response(data, { headers: [["Content-Type", "application/wasm"]] })
const module = new WebAssembly.Module(data);
const instance = new WebAssembly.Instance(module, {
"wasi_snapshot_preview1": wasi.wasiImport
});
console.log(instance);
//console.log(instance.exports.process("<a></a>", "<b></b>"));
wasi.start(instance);
</script>
</body>

</html>

0 comments on commit a60d790

Please sign in to comment.