High-level table API built on top of the layout DSL.
Use this namespace when you want named output formats, headers, map rows, and column specs without writing layout strings directly. Drop down to clj-string-layout.core/layout when you need full DSL control.
High-level table API built on top of the layout DSL. Use this namespace when you want named output formats, headers, map rows, and column specs without writing layout strings directly. Drop down to clj-string-layout.core/layout when you need full DSL control.
(format-info format)Returns registry information for a named table format.
The returned map is descriptive and may contain implementation details such as :layout. It is useful for discovery, but callers should prefer table APIs over relying on this map's exact shape.
Returns registry information for a named table format. The returned map is descriptive and may contain implementation details such as :layout. It is useful for discovery, but callers should prefer table APIs over relying on this map's exact shape.
(formats)Returns the set of named formats accepted by table, table-str, and table-seq.
Returns the set of named formats accepted by table, table-str, and table-seq.
(table spec)Renders a high-level table spec to a vector of output lines.
Required input is usually :rows, with optional :headers, :columns, and :format. Supported formats are returned by formats. Column specs may contain :key, :title, :align, :format, :width, and :overflow. Overflow policies are :none, :clip, :ellipsis, :wrap, and :error.
Renders a high-level table spec to a vector of output lines. Required input is usually :rows, with optional :headers, :columns, and :format. Supported formats are returned by formats. Column specs may contain :key, :title, :align, :format, :width, and :overflow. Overflow policies are :none, :clip, :ellipsis, :wrap, and :error.
(table-seq spec)Renders a high-level table spec as a sequence of output lines.
This currently applies the high-level table normalization before returning the sequence. Use clj-string-layout.core/layout-seq directly when you need fully streaming behavior with already-normalized rows and explicit column widths.
Renders a high-level table spec as a sequence of output lines. This currently applies the high-level table normalization before returning the sequence. Use clj-string-layout.core/layout-seq directly when you need fully streaming behavior with already-normalized rows and explicit column widths.
(table-str spec)Renders a high-level table spec and joins the resulting lines with newlines.
Renders a high-level table spec and joins the resulting lines with newlines.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |