diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 15:01:03 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 15:01:03 +0200 |
| commit | 2453b598def94649cc7ce9af7155bfaad40cce12 (patch) | |
| tree | 0267ac67c2e9d108bcf4b3006d55aaafc5deb8d8 /internal/bible | |
| parent | 35f98e0a8a0573d51a4412ec7f60c7de068acfe6 (diff) | |
| download | lectio-2453b598def94649cc7ce9af7155bfaad40cce12.tar.gz lectio-2453b598def94649cc7ce9af7155bfaad40cce12.zip | |
web: /settings page to edit config + books.toml, persisted and applied live; v0.14.0
Diffstat (limited to 'internal/bible')
| -rw-r--r-- | internal/bible/booktable.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/bible/booktable.go b/internal/bible/booktable.go index 007e75e..9ec95be 100644 --- a/internal/bible/booktable.go +++ b/internal/bible/booktable.go @@ -88,6 +88,10 @@ func mustReadEmbedded() []byte { return b } +// DefaultBooksTOML returns the embedded default books.toml (the seed the +// /settings editor shows when the user has no override yet). +func DefaultBooksTOML() []byte { return mustReadEmbedded() } + func parseBooks(data []byte) (map[string]map[string][]string, error) { var raw map[string]map[string][]string if err := toml.Unmarshal(data, &raw); err != nil { |
