2 Reference
This section describes the modules that comprise the plank configurations (scaffold/planks). These plank configurations allow for programmatic construction of the planks by other tools.
2.1 Module scaffold/planks
(require scaffold/planks) | package: racket-scaffold |
Each plank function takes an arguments parameter that not only provides the context for the templates but also any options for the plank structure as well.
(require scaffold/planks) (expand-module (hash-set (plank-argument-defaults) "content-name" "my-module"))
value
value
value
procedure
(expand-package arguments) → void?
arguments : hash?
procedure
(expand-collection arguments) → void?
arguments : hash?
procedure
(expand-module arguments) → void?
arguments : hash?
procedure
(expand-test-module arguments) → void?
arguments : hash?
procedure
(expand-scribblings arguments) → void?
arguments : hash?
procedure
(expand-a-plank arguments) → void?
arguments : hash?
procedure
(list-planks) → (listof string?)
procedure
2.2 Internal Arguments
The following table lists the arguments passed into the plank functions in Module scaffold/planks. A hash with default values can be created using the plank-argument-defaults function.
key |
| values |
| default |
| flags |
content-description |
|
|
| -d | ||
content-name |
|
|
| |||
module-language |
| ? |
| racket/base |
| -L |
package-dir |
|
|
| ? | ||
package-include-private |
|
| #t |
| –no-private | |
package-include-travis |
|
| #t |
| –no-travis | |
package-license |
| Apache-2.0, BSD, GPL-3, LGPL-2.1, MIT |
| MIT |
| -l |
package-name |
|
|
| |||
package-readme |
| markdown, text |
| markdown |
| -r |
package-structure |
| single, multi, triple |
| multi |
| –single-collection, –triple-collection |
package-version |
|
| 0.1 |
| -V | |
scribble-structure |
| (), multi-page |
| multi-page |
| –single-scribble |
user-args |
| key=value |
|
| -k | |
user-email |
|
|
| -e, -E | ||
user-id |
|
|
| |||
user-name |
|
|
| -u, -U | ||
year |
|
|
|