Liking cljdoc? Tell your friends :D

lein-replace.plugin

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

build-replace-mapclj

(build-replace-map project replacements)

Creates a replacement map suitable for replace.

Creates a replacement map suitable for `replace`.
sourceraw docstring

get-pathclj

(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.
sourceraw docstring

make-pathclj

(make-path dst)

Return a path valid for get-in

Return a path valid for `get-in`
sourceraw docstring

middlewareclj

(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`.
sourceraw docstring

replace-in-coordclj

(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.
sourceraw docstring

replace-in-pathclj

(replace-in-path replace-map project path)

Process a single path from a replace expression.

Process a single path from a replace expression.
sourceraw docstring

replace-with-exprclj

(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 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 paths 
sourceraw docstring

version-replaceclj

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

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close