Liking cljdoc? Tell your friends :D

wagoe.cli.templates

Shared template helpers for the wagoe CLI: template loading, {{var}} rendering, and AGENTS.md's marker-delimited blocks.

Shared template helpers for the wagoe CLI: template loading, {{var}}
rendering, and AGENTS.md's marker-delimited blocks.
raw docstring

block-contentclj

(block-content content block)

Content between the first marker pair (exclusive), or nil when absent.

Content between the first marker pair (exclusive), or nil when absent.
sourceraw docstring

read-templateclj

(read-template tmpl-name)

Slurp a template from the CLI's resources. Throws when missing.

Slurp a template from the CLI's resources. Throws when missing.
sourceraw docstring

renderclj

(render template substitutions)

Replace {{key}} placeholders in template with substitution values.

Replace {{key}} placeholders in template with substitution values.
sourceraw docstring

replace-blockclj

(replace-block target block new-body)

Replace the content of the first marker pair in target with new-body. Returns target unchanged when the markers are missing.

Replace the content of the first marker pair in target with new-body.
Returns target unchanged when the markers are missing.
sourceraw docstring

update-blockclj

(update-block content block f)

Apply f to the body of the first marker pair; no-op when markers absent.

Apply f to the body of the first marker pair; no-op when markers absent.
sourceraw 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