Skip to content

Commit

Permalink
feat(examples): htmlx
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Nov 20, 2023
1 parent 71f3d18 commit a2d31a2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/htmlx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "htmlx"
version = "0.1.0"
edition.workspace = true
publish = false

[dependencies]
viz.workspace = true

tokio = { workspace = true, features = [ "rt-multi-thread", "macros" ] }
12 changes: 12 additions & 0 deletions examples/htmlx/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Viz & htmlx</title>
<script src="https://unpkg.com/[email protected]" integrity="sha384-rgjA7mptc2ETQqXoYC3/zJvkU7K/aP44Y+z7xQuJiVnB/422P/Ak+F/AqFR7E4Wr" crossorigin="anonymous"></script>
</head>
<body>
<div hx-put="/messages">
Put To Messages
</div>
</body>
</html>
3 changes: 3 additions & 0 deletions examples/htmlx/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit a2d31a2

Please sign in to comment.