Skip to content

Conversation

kwstannard
Copy link

Given a template:

{{- newTable (sub termWidth 10) -}}
{{- tblHeaders "hello" -}}
{{- tblRow "world" -}}
{{ tableRender }}
{{ "" }}
{{- newTable (sub termWidth 10) -}}
{{- tblHeaders "goodnight" -}}
{{- tblRow "moon" -}}
{{ tableRender }}

The result will be:

| hello |
|-------|
| world |

| goodnight |
|-----------|
| moon      |

Given a template:

```
{{- newTable (sub termWidth 10) -}}
{{- tblHeaders "hello" -}}
{{- tblRow "world" -}}
{{ tableRender }}
{{ "" }}
{{- newTable (sub termWidth 10) -}}
{{- tblHeaders "goodnight" -}}
{{- tblRow "moon" -}}
{{ tableRender }}
```

The result will be:

```
| hello |
|-------|
| world |

| goodnight |
|-----------|
| moon      |
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant