Skip to content

Commit

Permalink
chore: cleanup readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsoft authored Dec 14, 2022
1 parent 9bfffef commit 264beed
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ A SwiftUI-like Webframework
import { PlainText, View, WebGen } from "https://deno.land/x/webgen/mod.ts";

WebGen();
View(() => PlainText("Hello World!")).appendOn(document.body);
View(() => PlainText("Hello World!"))
.appendOn(document.body);
```

```ts
Expand All @@ -20,17 +21,11 @@ import { serve } from "https://deno.land/x/esbuild_serve/mod.ts";

serve({
pages: {
"index": "./mod.ts",
"index": "mod.ts",
},
});
```

```html
<!-- Create a templates/index.html file -->
<link rel="stylesheet" href="index.css">
<script src="index.js"></script>
```

```
deno run -A serve.ts
```
Expand Down

0 comments on commit 264beed

Please sign in to comment.