diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-12-16 07:56:07 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-12-16 07:56:07 -0800 |
commit | 57241e201a637d32b5d37b197463a4b96825a6ea (patch) | |
tree | 457aba3dd289c4a83e42293a115c9c1f369405c5 /src/Text/Pandoc | |
parent | b4b4e32307499aafa2e6c1c713ee41f1c787ea76 (diff) | |
download | pandoc-57241e201a637d32b5d37b197463a4b96825a6ea.tar.gz |
Support Lua marshalling of doctemplates BoolVal.
This updates T.P.Lua.Marshaling.Context for doctemplates >= 0.9.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Lua/Marshaling/Context.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Lua/Marshaling/Context.hs b/src/Text/Pandoc/Lua/Marshaling/Context.hs index effcc675d..c0e7aef60 100644 --- a/src/Text/Pandoc/Lua/Marshaling/Context.hs +++ b/src/Text/Pandoc/Lua/Marshaling/Context.hs @@ -22,6 +22,7 @@ instance (TemplateTarget a, Pushable a) => Pushable (Context a) where instance (TemplateTarget a, Pushable a) => Pushable (Val a) where push NullVal = Lua.push () + push (BoolVal b) = Lua.push b push (MapVal ctx) = Lua.push ctx push (ListVal xs) = Lua.push xs push (SimpleVal d) = Lua.push $ render Nothing d |