Skip to main content

generate-string

function

clj-yaml.core/generate-string

(generate-string [data & opts])
Return a string of YAML from Clojure `data` structure. Relevant `& opts` (`opts` are keyword args, see [docs](/doc/01-user-guide.adoc#keyword-args)): - `:dumper-options` map of (see [docs](/doc/01-user-guide.adoc#dumper-options) for example usage.): - `:flow-style` can be: - `:auto` - let SnakeYAML decide - `:block` - indented syntax - `:flow` - collapsed syntax - default: `:auto` - `:indent` - spaces to block indent - default: `2` - `:indicator-indent` - spaces to indent `-` indicator - default: `0` - `:indent-with-indicator` - - `true` - indent blocks for `-` indicator by `:indent` + `:indicator-indent` - `false` - indent blocks for `-` indicator by `:indent` - default: `false`

No examples yet. Be the first to add one!

Categories