Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Dependencies
deno.land/x
jsdeliver.net
bootstrap-icons@1.7.1material-icons@1.10.3
std
Versions
- 2.0.0-beta.28Latest
- 2.0.0-beta.27
- 2.0.0-beta.26
- 2.0.0-beta.25
- 2.0.0-beta.24
- 2.0.0-beta.24
- 2.0.0-beta.23
- 2.0.0-beta.22
- 2.0.0-beta.21
- 2.0.0-beta.20
- 2.0.0-beta.19
- 2.0.0-beta.18
- 2.0.0-beta.17
- 2.0.0-beta.16
- 2.0.0-beta.15
- 2.0.0-beta.14
- 2.0.0-beta.13
- 2.0.0-beta.12
- 2.0.0-beta.12
- 2.0.0-beta.11
- 2.0.0-beta.10
- 2.0.0-beta.9
- 2.0.0-beta.8
- 2.0.0-beta.7
- 2.0.0-beta.6
- 2.0.0-beta.5
- 2.0.0-beta.4
- 2.0.0-beta.3
- v2.0.0-beta.2
- v2.0.0-beta.1
- v2.0.0-beta.0
WebGen 2.0
A SwftUI-like Webframework
Getting Started
// Create a mod.ts file
import { PlainText, View, WebGen } from "https://deno.land/x/webgen/mod.ts";
WebGen();
View(() => PlainText("Hello World!")).appendOn(document.body);
// Create a serve.ts file
import { serve } from "https://deno.land/x/esbuild_serve/mod.ts";
serve({
pages: {
"index": "./mod.ts",
},
});
<!-- Create a templates/index.html file -->
<link rel="stylesheet" href="index.css">
<script src="index.js"></script>
deno run -A --no-check serve.ts
Done! Have fun! More docs will follow