Liking cljdoc? Tell your friends :D
Mostly clj.
Exceptions indicated.

fr.jeremyschoffen.textp.alpha.lib.input

This namespace provides a way to pass information from the evaluation environment to some textp text being evaluated.

The idea is to have some code looking like this:

(with-input {:k1 v1}
  (-> "some/doc"
      slurp
      read-from-string
      eval
      compile
      (->> (spit "some/where"))))

The inputs are passed via fr.jeremyschoffen.textp.alpha.lib.input/with-input. The code being evaluated can then use this inputs by requiring and using fr.jeremyschoffen.textp.alpha.lib.input/*input*.

This namespace provides a way to pass information from the evaluation environment to
some textp text being evaluated.

The idea is to have some code looking like this:
```clojure
(with-input {:k1 v1}
  (-> "some/doc"
      slurp
      read-from-string
      eval
      compile
      (->> (spit "some/where"))))
```

The inputs are passed via [[fr.jeremyschoffen.textp.alpha.lib.input/with-input]]. The code being evaluated can
then use this inputs by requiring and using [[fr.jeremyschoffen.textp.alpha.lib.input/*input*]].
raw docstring

*input*clj/s

Dynamic var to be use as a source of input to be used in embedded clojure code or in custom tags.

Dynamic var to be use as a source of input to be used in embedded clojure code or in custom tags.
sourceraw docstring

with-inputcljmacro

(with-input i & body)

Macro helper to binding a value to fr.jeremyschoffen.textp.alpha.lib.input/*input*.

(with-input {:k1 v1}
  (-> "some/doc"
      slurp
      read-from-string
      eval
      compile
      (->> (spit "some/where"))))
Macro helper to binding a value to [[fr.jeremyschoffen.textp.alpha.lib.input/*input*]].

```clojure
(with-input {:k1 v1}
  (-> "some/doc"
      slurp
      read-from-string
      eval
      compile
      (->> (spit "some/where"))))
```
sourceraw docstring

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

× close