Liking cljdoc? Tell your friends :D

clj-string-layout.cli

Command-line entry point for formatting CSV, TSV, or whitespace input.

Command-line entry point for formatting CSV, TSV, or whitespace input.
raw docstring

clj-string-layout.core

Public entry points for rendering rows of strings with the clj-string-layout DSL.

Most applications use layout for vector output, layout-str for newline joined output, or layout-seq for large inputs with explicit column widths. The parse-layout and explain-layout helpers are intended for developing and debugging custom layout strings.

Public entry points for rendering rows of strings with the clj-string-layout DSL.

Most applications use layout for vector output, layout-str for newline joined
output, or layout-seq for large inputs with explicit column widths. The
parse-layout and explain-layout helpers are intended for developing and
debugging custom layout strings.
raw docstring

clj-string-layout.escape

Helpers for escaping cell values before rendering markup-oriented layouts.

The HTML and Markdown presets intentionally emit cell contents verbatim so callers can decide whether values are already trusted. Use this namespace to escape untrusted or arbitrary data before passing it to layout or layout-seq.

Helpers for escaping cell values before rendering markup-oriented layouts.

The HTML and Markdown presets intentionally emit cell contents verbatim so
callers can decide whether values are already trusted. Use this namespace to
escape untrusted or arbitrary data before passing it to layout or layout-seq.
raw docstring

clj-string-layout.layout

Compatibility namespace that re-exports the historical public API.

Earlier versions exposed both predicates and built-in layout maps from this namespace. New code should require clj-string-layout.predicates and clj-string-layout.presets directly for clearer intent. Existing code can continue to use the aliases below.

Each alias is generated programmatically from the corresponding source var so the file stays small as new presets are added.

Compatibility namespace that re-exports the historical public API.

Earlier versions exposed both predicates and built-in layout maps from this
namespace. New code should require clj-string-layout.predicates and
clj-string-layout.presets directly for clearer intent. Existing code can
continue to use the aliases below.

Each alias is generated programmatically from the corresponding source var so
the file stays small as new presets are added.
raw docstring

clj-string-layout.predicates

Reusable predicates for repeat groups and virtual row layouts.

Predicate functions receive [idx last-idx], where idx is zero-based and last-idx is the last index in the current expansion. Column predicates are used with :repeat-for on [:layout :cols]. Row predicates are used with :apply-for on entries in [:layout :rows].

Reusable predicates for repeat groups and virtual row layouts.

Predicate functions receive [idx last-idx], where idx is zero-based and
last-idx is the last index in the current expansion. Column predicates are
used with :repeat-for on [:layout :cols]. Row predicates are used with
:apply-for on entries in [:layout :rows].
raw docstring

clj-string-layout.presets

Built-in layout configuration maps for common text, CSV/TSV, Markdown, and HTML tables.

Presets are plain layout config maps that can be passed to layout, layout-str, or layout-seq. They can also be assoc'ed with options such as :width, :display-width, :col-widths, or :raw?. Markup and separated-value presets emit cell contents verbatim; use clj-string-layout.escape for untrusted data.

Built-in layout configuration maps for common text, CSV/TSV, Markdown, and HTML tables.

Presets are plain layout config maps that can be passed to layout, layout-str,
or layout-seq. They can also be assoc'ed with options such as :width,
:display-width, :col-widths, or :raw?. Markup and separated-value presets emit
cell contents verbatim; use clj-string-layout.escape for untrusted data.
raw docstring

clj-string-layout.table

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.
raw docstring

clj-string-layout.width

Display-width helpers for use with the :display-width layout option.

Display-width helpers for use with the :display-width layout option.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close