You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the installable plugins (#3), fabric must have built-in plugins to allow generation of simple content without the need to download extra components.
content.table plugin is a part of the fabric binary.
Specification
the plugin has no configuration options
API interface:
local context object
required columns attribute, a list of strings
optional datapoints attribute, a list of strings
Behavior
The plugin formats and returns a Markdown-formatted table with the header row.
The values in columns attribute are the column names. datapoints attribute contains a list of jq queries to be applied to every object in query_result object.
If query is not set, or datapoints is not set, or query_result is nil or an empty list, an empty table with the header is returned.
Background
In addition to the installable plugins (#3),
fabric
must have built-in plugins to allow generation of simple content without the need to download extra components.Related: #13, #15
Design
content.table
plugin is a part of thefabric
binary.Specification
columns
attribute, a list of stringsdatapoints
attribute, a list of stringsBehavior
The plugin formats and returns a Markdown-formatted table with the header row.
The values in
columns
attribute are the column names.datapoints
attribute contains a list ofjq
queries to be applied to every object inquery_result
object.If
query
is not set, ordatapoints
is not set, orquery_result
isnil
or an empty list, an empty table with the header is returned.For example, with the content block
and with the
query_result
set tothe expected result table would be
Deliverables
content.table
pluginThe text was updated successfully, but these errors were encountered: