#!/bin/bash

# Templates simples (juste description)
simple_items=("don" "faiblesse" "blessure")

for item in "${simple_items[@]}"; do
  cat > "item-${item}-sheet.hbs" << 'EOF'
<section class="{{cssClass}}" autocomplete="off">
    <header class="sheet-header">
        <img class="profile-img" src="{{item.img}}" data-action="editImage" title="{{item.name}}"/>
        <div class="header-fields">
            <h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Nom"/></h1>
        </div>
    </header>

    <section class="sheet-body">
        <div class="tab" data-group="primary">
          <label class="generic-label">Description</label>
          <div class="editor-content">
            {{{enrichedDescription}}}
          </div>
        </div>
    </section>
</section>
EOF
done

echo "Created simple item templates"
ls -1 item-*-sheet.hbs | wc -l
