This documentation refers to a Gravstrap obsolete release. Please consider to upgrade to the new release

The Gravstrap Well component handles the Bootstrap Well component.

The well component is defined by the following Yaml code:

gravstrap:
    well:
        well1:       
            #from_file: well.markdown     
            body: Look, I'm in a well!
            small: false
            large: false

This code must be added to the page where you need to display the component.

body property [optional]

The body property defines a simple content for the well body. When you define both the body and the from_file properties, the latter one is ignored.

from_file property [optional]

The from_file mandatory property defines the file which contains the contents for each jumboron element. This file must be added under the page where the component is displayed and it is structured as follows:

[SECTION body]

### Well
Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.

[/SECTION]

If you need to add more wells and you want to define for each well a markdown content, you must add a markdown file for all the wells you want to handle.

small property [optional]

The small optional property shows a small well.

large property [optional]

The large optional property shows a large well.

Render the well component

Add the following code to the template where you need to render the well component:

{{ gravstrap.well1 }}

Next Post