Dynamic Automation and Script Injection

Abstract

This demonstration illustrates compile-time computational execution blocks (execute{lang=python} and execute{lang=bash}). It showcases passing attributes to scripts, programmatic table/callout generation, and host operating system integration.

1 Dynamic Automation

MarkCharm is more than a markup language — it is a programmable environment for technical document generation.

1.1 Python Integration

We can automate data acquisition and formatting directly inside the document.

> [!TIP]
> Data generated on: 11/08/2026 10:00:00

1.2 Parameter Passing

Document parameters can be passed directly to the script via block attributes.

- **Safety Threshold**: 75.0%
- **Current State**: Critical
- **Alert**: Value exceeds configured safety margin.

1.3 System Integration

The compiler can also interact with the operating system environment.

The host system is operating in the following environment:
% **Kernel**: 6.8.0-generic
% **Hostname**: markcharm-node
% **Uptime**: up 10 hours, 30 minutes