<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/full-stack-web-development-with-htmx-and-bun-part-2-pug-templating-opxnyxwhn" -->

---
title: Full-stack web development with HTMX and Bun, Part 2:...
description: This article explores full-stack web development using HTMX, Bun, Elysia, and MongoDB. It covers setting up a web development stack, creating an example...
canonical: https://daily.dev/posts/full-stack-web-development-with-htmx-and-bun-part-2-pug-templating-opxnyxwhn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Full-stack web development with HTMX and Bun, Part 2: Pug templating | daily.dev
og:description: This article explores full-stack web development using HTMX, Bun, Elysia, and MongoDB. It covers setting up a web development stack, creating an example...
og:url: https://daily.dev/posts/full-stack-web-development-with-htmx-and-bun-part-2-pug-templating-opxnyxwhn
og:image: https://api.daily.dev/og/posts/opXnyXWHn.png
og:image:alt: Full-stack web development with HTMX and Bun, Part 2: Pug templating
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Full-stack web development with HTMX and Bun, Part 2: Pug templating

**[InfoWorld](https://daily.dev/sources/infoworld)** · 7 min read · 2 upvotes · 2 comments

## Summary

This article explores full-stack web development using HTMX, Bun, Elysia, and MongoDB. It covers setting up a web development stack, creating an example application, using the database connection, adding the Pug templating engine, and implementing DOM interactions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.infoworld.com/article/3715122/full-stack-web-development-with-htmx-and-bun-part-2-pug-templating.html>

## Community discussion

Top comments from developers on daily.dev.

**@bill41** · 0 upvotes

> How is there no htmx pug vscode plugin? I want hx-* completions in vscode so badly

**@kyoukhana** · 0 upvotes

> If you look at the PUG repo there is minimal development and so many opened issues

---

Tags: [#mongodb](https://daily.dev/tags/mongodb), [#bun](https://daily.dev/tags/bun), [#htmx](https://daily.dev/tags/htmx)

[View this post on daily.dev](https://daily.dev/posts/full-stack-web-development-with-htmx-and-bun-part-2-pug-templating-opxnyxwhn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Full-stack web development with HTMX and Bun, Part 2: Pug templating","url":"https://daily.dev/posts/full-stack-web-development-with-htmx-and-bun-part-2-pug-templating-opxnyxwhn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/full-stack-web-development-with-htmx-and-bun-part-2-pug-templating-opxnyxwhn"},"datePublished":"2024-04-10T09:04:51.785Z","dateModified":"2024-05-09T09:28:18.744Z","description":"This article explores full-stack web development using HTMX, Bun, Elysia, and MongoDB. It covers setting up a web development stack, creating an example...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ed83fb8d48cdadb08f8275be2b78479?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7ed83fb8d48cdadb08f8275be2b78479?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"InfoWorld","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"InfoWorld","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/bf6d68a999064029b0bb09aa6268f1f3","url":"https://daily.dev/sources/infoworld"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/full-stack-web-development-with-htmx-and-bun-part-2-pug-templating-opxnyxwhn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"mongodb,bun,htmx","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"InfoWorld","item":"https://daily.dev/sources/infoworld"},{"@type":"ListItem","position":3,"name":"Full-stack web development with HTMX and Bun, Part 2: Pug templating"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/full-stack-web-development-with-htmx-and-bun-part-2-pug-templating-opxnyxwhn","comment":[{"@type":"Comment","text":"How is there no htmx pug vscode plugin? I want hx-* completions in vscode so badly","datePublished":"2024-05-09T17:15:03.932Z","url":"https://daily.dev/posts/opXnyXWHn#c-IEiW6WGVY","author":{"@type":"Person","name":"Bill","url":"https://daily.dev/bill41","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"}},{"@type":"Comment","text":"If you look at the PUG repo there is minimal development and so many opened issues","datePublished":"2024-04-17T14:52:19.575Z","url":"https://daily.dev/posts/opXnyXWHn#c-evJb5Vxt3","author":{"@type":"Person","name":"Kevin","url":"https://daily.dev/kyoukhana","image":"https://avatars2.githubusercontent.com/u/756849?v=4"}}]}
```

