Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/examples/Sudoku.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ textarea:focus {
<script setup>
import { ref, nextTick, useTemplateRef } from "vue";
import { withBase } from "vitepress";
import { render } from "ejs";
import ejs from "ejs";
import { Search } from "atsds";

const rule_data_url = withBase("/examples/Sudoku.ejs");
Expand Down Expand Up @@ -353,7 +353,7 @@ async function* search() {
addLog("Loading Sudoku grid...");
run.value = true;
const response = await fetch(rule_data_url);
const text = render(await response.text());
const text = ejs.render(await response.text());
const sections = text.split(/\n\n/);
const data = sections.filter((section) => section.trim().length > 0).map((section) => section.trim());
for (let row = 0; row < 9; row++) {
Expand Down