Refactor the handlebars helpers to namespace using dd instead of dotdungeon because it's so long

This commit is contained in:
Oliver-Akins 2023-12-30 22:15:23 -07:00
parent d4531f089a
commit 38952c61b4
11 changed files with 52 additions and 39 deletions

View file

@ -4,7 +4,7 @@
{{#> dotdungeon.panel class="stats" title="dotdungeon.actor.pc.panel.statistics"}}
{{#each system.stats }}
{{> dotdungeon.stat name=@key value=this}}
{{> dotdungeon.stat system=../system name=@key value=this}}
{{/each}}
{{/ dotdungeon.panel}}
@ -43,21 +43,21 @@
<div class="debug-data" style="grid-column: 1 / span 3">
<div>
Settings:
<pre><code>{{dotdungeon-stringify settings}}</code></pre>
<pre><code>{{dd-stringify settings}}</code></pre>
</div>
<div>
Meta:
<pre><code>{{dotdungeon-stringify meta}}</code></pre>
<pre><code>{{dd-stringify meta}}</code></pre>
</div>
<hr>
<div>
System:
<pre><code>{{dotdungeon-stringify system}}</code></pre>
<pre><code>{{dd-stringify system}}</code></pre>
</div>
<hr>
<div>
Actor:
<pre><code>{{dotdungeon-stringify actor}}</code></pre>
<pre><code>{{dd-stringify actor}}</code></pre>
</div>
</div>
{{/if}}