Skip to content

Commit

Permalink
feat: add page.cppx and filesystem based router
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbacsur committed Oct 12, 2024
1 parent f0f6f6f commit 9e00883
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions router/cppx/page.cppx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
auto LandingPage() {
return (
<html>
<head>
<title>CPPX</title>
</head>
<body>
<h1>CPPX</h1>
<p>A high-performance reactive web framework in C++</p>
<button
onclick={[]() {
std::cout << "Hello, world!" << std::endl;
}}
>
Click me!
</button>
</body>
</html>
);
}

0 comments on commit 9e00883

Please sign in to comment.