diff --git a/document.go b/document.go index 1a588d3..06f0dad 100644 --- a/document.go +++ b/document.go @@ -47,6 +47,11 @@ func (this *Document) Execute (output io.Writer, data ExecutionData) error { }) } +// Environment returns the environment this document is in. +func (this *Document) Environment () *Environment { + return this.environment +} + // ExecutionData is data made available to documents as they are being exeucted. type ExecutionData struct { Data any // Custom data