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) {
+1 -1
View File
@@ -73,7 +73,7 @@ const DOWNLOAD_AT_ONCE = 4;
// server puts together. VERSION covers the hand-written chrome in assets/,
// templates included, so editing the shell drops and refetches a few hundred
// kilobytes. The other covers the generated pages in books/, which change only
// when render_books.py runs -- so a change of chrome no longer costs every
// when compile_bible.py runs -- so a change of chrome no longer costs every
// device the whole corpus again.
const VERSION = 'dev';
const LIBRARY_VERSION = 'dev';