🚀 Quick Start
1. Create Express app
1import express from 'express';2import { Attach } from 'hbh-deve';4const app = express();6await Attach(app); 8app.listen(3000, () => {9 console.log('✅ Running at http://localhost:3000');10});
2. Add views
✅ views/pages/index.pug
1h1 Welcome to my app!2p Current time: {{ new Date().toLocaleTimeString() }}
✅ views/pages/blog/[slug].md
1---2title: My Blog Post3nolayout: false4---6# Hello {{ params.slug }}8This is a markdown page.
✅ views/pages/user/[id].js
1export default async ({ params }) => {2 return {3 title: `User: ${params.id}`,4 html: `<p>Hello, <strong>${params.id}</strong></p>`5 };6};8export const middlewares = [9 (req, res, next) => {10 console.log('👋 User route hit');11 next();12 }13];