summaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/pandoc-lua-engine.cabal
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2022-10-12 21:37:47 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2022-10-14 10:37:37 -0700
commit8900b0f953798b01087e0135a3a9708a95eb7fde (patch)
treeb7221db3118cff0d81daf9282aa33c05536631f6 /pandoc-lua-engine/pandoc-lua-engine.cabal
parent06ba4e9788eb5d53d566c01ad8e24aa91e104a74 (diff)
Lua: Support built-in default templates for custom writers
Custom writers can define a default template via a global `Template` function; the data directory is no longer searched for a default template. Writer authors can restore the old lookup behavior with ``` lua Template = function () local template return template.compile(template.default(PANDOC_SCRIPT_FILE)) end ```
Diffstat (limited to 'pandoc-lua-engine/pandoc-lua-engine.cabal')
-rw-r--r--pandoc-lua-engine/pandoc-lua-engine.cabal2
1 files changed, 2 insertions, 0 deletions
diff --git a/pandoc-lua-engine/pandoc-lua-engine.cabal b/pandoc-lua-engine/pandoc-lua-engine.cabal
index 3c632026b..b20f9afc7 100644
--- a/pandoc-lua-engine/pandoc-lua-engine.cabal
+++ b/pandoc-lua-engine/pandoc-lua-engine.cabal
@@ -32,6 +32,8 @@ extra-source-files: README.md
, test/tables.native
, test/testsuite.native
, test/writer.custom
+ , test/writer-template.lua
+ , test/writer-template.out.txt
source-repository head
type: git