KamoCRM

Re-render templates client-side with real data in email preview

Fixkamo-internal
Shipped
March 18, 2026 at 7:26 PM UTC
Author
kamo
Commit
50fc874

The preview was showing placeholder text ({{member.firstName}} etc.) because it used the pre-rendered placeholder HTML from the backend. Now the MessageTool: - Fetches the template config from backend and maps it to SignatureConfig - Fetches live member profile + org data via useSignatureData hook - Resolves actual image URLs via useImageResolver hook - Re-renders header and signature HTML client-side using the template render functions with real member/org data - Shows accurate preview with actual names, emails, logos, and styling

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing