diff options
| author | Albert Krewinkel <[email protected]> | 2022-01-02 15:28:59 +0100 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-01-02 11:55:02 -0800 |
| commit | efdba79ad18fcbe33992878b02be25f8e9616b0c (patch) | |
| tree | 2c6f82d499bd12105f34de14d4fcf957c93ce27d /src/Text/Pandoc/Lua/Module/System.hs | |
| parent | 60fc05e2ce2dc4b0191ee98daccf301a065e2dae (diff) | |
Lua writer: allow variables to be set via second return value of `Doc`
New templates variables can be added by giving variable-value pairs as a
second return value of the global function `Doc`.
Example:
function Doc (body, meta, vars)
vars.date = vars.date or os.date '%B %e, %Y'
return body, vars
end
Closes: #6731
Diffstat (limited to 'src/Text/Pandoc/Lua/Module/System.hs')
0 files changed, 0 insertions, 0 deletions
