summaryrefslogtreecommitdiff
path: root/support/make4ht/extensions/make4ht-ext-odttemplate.lua
diff options
context:
space:
mode:
Diffstat (limited to 'support/make4ht/extensions/make4ht-ext-odttemplate.lua')
-rw-r--r--support/make4ht/extensions/make4ht-ext-odttemplate.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/support/make4ht/extensions/make4ht-ext-odttemplate.lua b/support/make4ht/extensions/make4ht-ext-odttemplate.lua
new file mode 100644
index 0000000000..3b0af2a699
--- /dev/null
+++ b/support/make4ht/extensions/make4ht-ext-odttemplate.lua
@@ -0,0 +1,16 @@
+local M = {}
+
+local filter = require "make4ht-filter"
+
+-- this extension only works for the ODT format
+M.test = function(format)
+ return format=="odt"
+end
+
+M.modify_build = function(make)
+ local process = filter {"odttemplate"}
+ make:match("4oy$", process)
+ return make
+end
+
+return M