pub fn generate_index() -> String {
r#"import { Hono } from "hono";
const app = new Hono();
app.get("/", (c) => c.text("Hello Hono!"));
export default app;
"#
.to_string()
}
pub fn generate_component() -> String {
r#"import app from "./index";
import { fire } from "@bytecodealliance/jco-std/wasi/0.2.6/http/adapters/hono/server";
fire(app);
export { incomingHandler } from "@bytecodealliance/jco-std/wasi/0.2.6/http/adapters/hono/server";
"#
.to_string()
}