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

676 B

id type title tags importance confidence created updated
608a8ca5-4d51-46de-a9b6-785f91cd69ab solution Handlebars this.variable context fix for Foundry VTT
vagabond-rpg
foundry-vtt
handlebars
fix
template
0.8 0.8 2025-12-14T01:52:37.990415+00:00 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.