Support Lua marshalling of doctemplates BoolVal.
This updates T.P.Lua.Marshaling.Context for doctemplates >= 0.9.
commit57241e201a637d32b5d37b197463a4b96825a6ea
authorJohn MacFarlane <jgm@berkeley.edu>
dateWed 16 Dec 2020, 07:56 (6 years ago)
parentb4b4e32
src/Text/Pandoc/Lua/Marshaling/Context.hs+1
@@ -22,6 +22,7 @@ instance (TemplateTarget a, Pushable a) => Pushable (Context a) where
2222
2323instance (TemplateTarget a, Pushable a) => Pushable (Val a) where
2424 push NullVal = Lua.push ()
25+ push (BoolVal b) = Lua.push b
2526 push (MapVal ctx) = Lua.push ctx
2627 push (ListVal xs) = Lua.push xs
2728 push (SimpleVal d) = Lua.push $ render Nothing d