server-side-render

Render Handlebars views inside a NestJS module with BaseAssetsModule.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mthang1801/go-domain-driven-design --skill server-side-render
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: server-side-render
Source: https://github.com/mthang1801/go-domain-driven-design/tree/main/.claude/skills/server-side-render
Command: npx skills add https://github.com/mthang1801/go-domain-driven-design --skill server-side-render

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

NestJS apps that need to render UI directly from the backend often rely on a separate frontend project. This skill provides patterns to embed server-side rendered views using Handlebars within a module, leveraging an assets-base module to serve views and static assets.

Core Features & Use Cases

  • Embed Handlebars-based SSR views inside NestJS modules so backend data can populate UI without a separate frontend.
  • Reuse existing NestJS structures while delivering dynamic HTML templates and static assets to clients.
  • Use Case: admin dashboards or internal tools that require tight backend coupling and simple client UI without a dedicated frontend project.

Quick Start

Create a NestJS module, add an assets directory with views and public folders, then extend BaseAssetsModule and AssetsBaseController to render a Handlebars view.

Frequently Asked Questions about server-side-render

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render UI directly from a NestJS backend without a separate frontend project?

NestJS server-side rendering lets you embed Handlebars views directly inside backend modules. This pattern populates dynamic HTML templates with backend data without requiring a separate frontend project.

What is the best way to build an admin dashboard with tight backend data coupling in NestJS?

Building an admin dashboard with tight backend data coupling in NestJS is best achieved by embedding server-side rendered views inside modules. This uses Handlebars to deliver dynamic HTML templates directly from backend data without a dedicated frontend.

How do I integrate Handlebars templates into a NestJS module architecture?

To integrate Handlebars templates into a NestJS module architecture, you create a module with an assets directory, extend BaseAssetsModule, and use a controller to render views. This serves dynamic templates and static assets within the backend.

Does server-side rendering in NestJS require a separate frontend project?

Server-side rendering in NestJS does not require a separate frontend project. You can embed Handlebars views directly inside NestJS modules to serve dynamic HTML templates and static assets while reusing existing backend structures.

When should I use embedded SSR views instead of a dedicated frontend application?

You should use embedded SSR views instead of a dedicated frontend application when building internal tools or admin dashboards that require tight backend coupling. It delivers simple client UIs directly from backend modules without managing a separate project.