Pcornel
Automation · Templates

Template Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=5806

Back to the Topic

Answer

Template fundamentals: separate the structure (template) from the data (variables), keep templates small and readable, and test the rendered output before deploying it.

Remember

  • Separate structure (template) from data (variables).
  • Keep templates small.
  • Test rendered output.

First checks

  • Template + variables → output — model
  • Strict undefined variables — fail on missing data
  • Rendering tests — quality

Verify in this order

variables → template engine → text

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5806

Confirmation

Confirm action

Continue?