<?php
// 範例骨架(請用 nowdoc <<<'TXT' 寫長文,避免 PHP 把 $變數 當成插值)
return [
    'title' => '章節標題(不含「第N章」前綴)',
    'lessons' => [
        ['title' => '單元名稱', 'type' => 'text', 'xp' => 10, 'content' => <<<'TXT'
教材全文……含 $ 的程式碼也安全。
TXT],
        ['title' => '實作任務', 'type' => 'lab', 'xp' => 30, 'content' => <<<'TXT'
目標 / 步驟 / 驗收標準
TXT],
        ['title' => '本章測驗', 'type' => 'quiz', 'xp' => 20, 'questions' => [
            ['type' => 'single', 'body' => '題目', 'options' => ['A', 'B', 'C'], 'answer' => [1], 'explanation' => '為什麼', 'reference' => '第N章 · 單元名稱'],
        ]],
    ],
];
