From bcdd9427d3e179d2f94671e4966305eac8c2ad84 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 3 Aug 2016 00:54:58 +0200 Subject: Add formspec entry builder --- API.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'API.md') diff --git a/API.md b/API.md index 1a5e6c2..f5a0a44 100644 --- a/API.md +++ b/API.md @@ -58,7 +58,12 @@ For `build_formspec` you can either define your own function or use one of the following predefined functions: * `doc.entry_templates.text`: Expects entry data to be a string. - It will be inserted directly into the entry. + It will be inserted directly into the entry. Useful for entries with + a freeform text. + +* `doc.entry_templates.formspec`: Entry data is expected to contain the + complete entry formspec as a string. Useful if your entries. Useful + if you expect your entries to differ wildly in layouts. #### Return value Always `nil`. -- cgit v1.2.3