Documentation Language: Swift

Structure

MTLFileStatement

A file statement for directing output to a file.

struct MTLFileStatement

Overview

File statements create and manage output files, allowing templates to generate multiple files from a single execution.

Topics

Initializers

?
init(url:mode:charset:body:multiLines:)

Creates a new file statement.

Instance Properties

V
body

The block to execute (output goes to the file).

V
charset

Optional charset expression.

V
mode

The file open mode.

V
multiLines

Whether this statement spans multiple lines.

V
url

Expression that computes the file path.

Instance Methods

F
execute(in:)

Executes the statement within the specified execution context.

Default Implementations

Relationships

Conforms To