includeDet
includeDet is a directive in template engines and build systems used to embed the contents of another file or resource into the current document or artifact, with deterministic resolution. It emphasizes reproducible output by incorporating a content-based identifier, typically a hash, that tracks the included resource. It ensures that changes in the included content trigger rebuilds and updates.
The primary purpose is to enable modular composition while preserving deterministic builds. Unlike a simple include,
How it works: during rendering, the system locates the target file, reads its content, computes a hash,
Examples: includeDet("docs/overview.det"); includeDet("modules/util.det", { hash: true, detailLevel: 2 }); These examples show including a document with or without
Limitations: security risks from including untrusted paths, potential performance costs, and the need for consistent environments