Liking cljdoc? Tell your friends :D

pottery.core


make-extractorcljmacro

(make-extractor & args)

Returns an extraction function using the core.match pattern syntax.

Example:

(make-extractor ['tr s] s ['trn [s1 s2] _] [s1 s2])

Returns an extraction function using the core.match pattern syntax.

Example:

  (make-extractor
    ['tr s] s
    ['trn [s1 s2] _] [s1 s2]) 
sourceraw docstring

read-po-fileclj

source

scan-codebase!clj

(scan-codebase!)
(scan-codebase! opts)

Recursively reads the code in dir, scans all strings and outputs a .pot file according to the gettext format with all the translatable strings.

Opts is a map which accepts: :dir - The source dir to be scanned. :extract-fn - The extraction function that gets called with every expression in the codebase :template-file - The POT file where the results are to be written.

All of these options have defaults.

Recursively reads the code in dir, scans all strings and outputs a
.pot file according to the gettext format with all the translatable
strings.

Opts is a map which accepts:
:dir - The source dir to be scanned.
:extract-fn - The extraction function that gets called with every
              expression in the codebase
:template-file - The POT file where the results are to be written.

All of these options have defaults.
sourceraw docstring

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

× close