aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Template.hs
diff options
context:
space:
mode:
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Template.hs')
-rw-r--r--pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Template.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Template.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Template.hs
index 87d9cebb5..203fbf1cf 100644
--- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Template.hs
+++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Template.hs
@@ -11,6 +11,7 @@ module Text.Pandoc.Lua.Module.Template
( documentedModule
) where
+import Data.Version (makeVersion)
import HsLua
import HsLua.Module.DocLayout (peekDoc, pushDoc)
import Text.Pandoc.Error (PandocError)
@@ -53,6 +54,7 @@ functions =
, "table as values, where the table can be either be a list of the"
, "aforementioned types, or a nested context."
]
+ `since` makeVersion [3,0]
, defun "compile"
### (\template mfilepath -> unPandocLua $
@@ -64,6 +66,7 @@ functions =
<#> opt (stringParam "templ_path" "template path")
=#> functionResult (either failLua pushTemplate) "pandoc Template"
"compiled template"
+ `since` makeVersion [2,17]
, defun "default"
### (\mformat -> unPandocLua $ do
@@ -76,6 +79,7 @@ functions =
"writer for which the template should be returned.")
=#> functionResult pushText "string"
"string representation of the writer's default template"
+ `since` makeVersion [2,17]
, defun "meta_to_context"
### (\meta blockWriterIdx inlineWriterIdx -> unPandocLua $ do
@@ -101,4 +105,5 @@ functions =
, "data, using the given functions to convert [Blocks] and [Inlines]"
, "to [Doc] values."
]
+ `since` makeVersion [3,0]
]