Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 656 Bytes

erb-templates.md

File metadata and controls

11 lines (7 loc) · 656 Bytes

ERB templates

Content is defined in content_for blocks.

Any state variable defined in the flow is available to be used in the ERB template. See storing data for the various ways that you can set state variables.

We remove all leading spaces from the content in the content_for blocks before processing it using Govspeak. This allows us to indent the content in the content_for blocks without having to worry about it affecting the generated HTML when it's processed using Govspeak.