A leiningen plugin which installs a middleware to allow referencing project elements in coordinate definitions.
A leiningen plugin which installs a middleware to allow referencing project elements in coordinate definitions.
(build-replace-map project replacements)
Creates a replacement map suitable for replace
.
Creates a replacement map suitable for `replace`.
(get-path project v)
Get a path, where a path can be a collection or a key.
Get a path, where a path can be a collection or a key.
(make-path dst)
Return a path valid for get-in
Return a path valid for `get-in`
(middleware {:keys [replace-expressions replace-version?]
:or {replace-version? true replace-expressions []}
:as project})
A leiningen middleware to allow self-references. By default,
replaces any occurences of :version
in the :dependencies
and :managed-dependencies
keys by the actual project version.
This default replacement can be disabled by setting :replace-version?
to false, additional replacements can be specified in
:replace-expressions
.
A leiningen middleware to allow self-references. By default, replaces any occurences of `:version` in the `:dependencies` and `:managed-dependencies` keys by the actual project version. This default replacement can be disabled by setting `:replace-version?` to false, additional replacements can be specified in `:replace-expressions`.
(replace-in-coord replace-map coord)
Given a built replace map and a coordinate description,
replace any occurence of patterns in replace-map
in coord,
preserving its original form.
Given a built replace map and a coordinate description, replace any occurence of patterns in `replace-map` in coord, preserving its original form.
(replace-in-path replace-map project path)
Process a single path from a replace expression.
Process a single path from a replace expression.
(replace-with-expr project {:keys [replacements paths]})
Process a single replacement expression. Each replacement expression is a map of two keys:
:replacements
: A map of keyword to path in the project.
the key will be the expression to replace when found in the
project, the value, a path to fetch in the project with
get-path
.:paths
: A collection of pathsProcess a single replacement expression. Each replacement expression is a map of two keys: - `:replacements`: A map of keyword to path in the project. the key will be the expression to replace when found in the project, the value, a path to fetch in the project with `get-path`. - `:paths`: A collection of paths
The default replace expression. To disable this replacement,
set :version-replace?
to false in your project. Additional
replacements may be added to :replace-expressions
in the project.
The default replace expression. To disable this replacement, set `:version-replace?` to false in your project. Additional replacements may be added to `:replace-expressions` in the project.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close