From 688a1e3830cdf863fda46df79496393253be8222 Mon Sep 17 00:00:00 2001 From: andreas Date: Wed, 13 Jul 2016 09:12:29 +0200 Subject: [PATCH] Clarify docs on flow blocks templates --- content/docs/models/flow/contents.lr | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/content/docs/models/flow/contents.lr b/content/docs/models/flow/contents.lr index 07c9301a..064ecc4b 100644 --- a/content/docs/models/flow/contents.lr +++ b/content/docs/models/flow/contents.lr @@ -43,9 +43,14 @@ a flow. ## Templates Now that we have a model for our flow block, we need to create a template -for it. When a flow block is added to a Flow, it will automatically -render it by default through the template `blocks/NAME.html` (so in our -case `blocks/text.html`). Here is a suitable template for this: +for it. Templates for blocks are stored in the `blocks` subdirectory of the +`templates` folder. +The name for the block template is automatically derived from the config file +that keeps the flow block definition (`templates/blocks/NAME.html`): +In our case the expected template is `templates/blocks/text.html`, +as our flow block is defined in a file called `text.ini`. + +Here is a suitable template for this: ```html+jinja