render

package
v0.1.86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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

func Render(dir, outputDir string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL