This commit is contained in:
mark committed 2026-09-04 11:59:56 -04:00
1 parent 7127e3ff9d
commit 777996cb40
6 files changed
+311 -406

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@
'use strict';
// A fragment is a <title> and one root element. The root's data-template
// names the template that wraps it; render_books.py writes both.
// names the template that wraps it; compile_bible.py writes both.
var TITLE_RE = /<title>([\s\S]*?)<\/title>/i;
var TEMPLATE_RE = /data-template="([a-z0-9_-]+)"/i;
@@ -56,7 +56,7 @@
// A fragment becomes a whole document. page.njk is the fallback for one
// that names no template of its own.
//
// content is already escaped -- render_books.py escapes as it writes and
// content is already escaped -- compile_bible.py escapes as it writes and
// notice.njk comes out of nunjucks -- which is what the |safe on it in
// base.njk is for.
compose: function (fragment, mark) {