Skip to content

add ability to put a table anywhere#497

Open
kwstannard wants to merge 4 commits intogo-jira:masterfrom
kwstannard:tables
Open

add ability to put a table anywhere#497
kwstannard wants to merge 4 commits intogo-jira:masterfrom
kwstannard:tables

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