Documentation
¶
Overview ¶
Package render implements the "render" command. It discovers every module under a directory and renders each module's templates into a 'rendered' directory at the module root, using values generated from the module's openapi schemas (the same way dmt generates values while linting).
Index ¶
Constants ¶
View Source
const (
// RenderedDirName is the per-module directory that receives the rendered output.
RenderedDirName = "rendered"
)
Variables ¶
This section is empty.
Functions ¶
func Render ¶
Render discovers all modules under dir (including subdirectories) and renders each module's templates.
When outputDir is empty, every module is rendered into a 'rendered' directory at its own root. When outputDir is set, all modules are rendered into a shared '<outputDir>/rendered/<module-name>/<edition>/' tree instead; outputDir must be an existing directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.