SpinaCMS/Spina

View on GitHub
docs/v2/rendering_content/2_multi_line.md

Summary

Maintainability
Test Coverage
# MultiLine

Similar to the Line part, however instead of a simple textfield, it uses a textarea to store a multiple lines of text.

Use the `content` helper method to render lines. You may also want to use `simple_format` so that break lines are respected.

## Theme configuration

```
config.parts = [
  # ...
  {
    name: "teaser",
    title: "Teaser",
    part_type: "Spina::Parts::MultiLine"
  }
]
```

## View template example
```
<p><%= simple_format content(:teaser) %></p>
```