claude-memory/graph/solutions/handlebars-thisvariable-context-fix-for-foundry-vtt-608a8c.md
Cal Corum b140d4d82a migrate: 313 memories from MemoryGraph
- 313 new markdown files created
- 30 relationships embedded
- 313 entries indexed
- State initialized with usage data
2026-02-13 11:11:48 -06:00

13 lines
676 B
Markdown

---
id: 608a8ca5-4d51-46de-a9b6-785f91cd69ab
type: solution
title: "Handlebars this.variable context fix for Foundry VTT"
tags: [vagabond-rpg, foundry-vtt, handlebars, fix, template]
importance: 0.8
confidence: 0.8
created: "2025-12-14T01:52:37.990415+00:00"
updated: "2025-12-14T01:52:37.990415+00:00"
---
When passing data to Handlebars templates in Foundry VTT, using {{variable}} can resolve through the context chain to nested object properties (e.g., actor.system.skills.X.difficulty) instead of root template data. Fix: Use {{this.variable}} to explicitly reference root context. Applied to difficulty/critThreshold in chat card templates for skill/attack/save rolls.