Module functions

Module functions 

Source
Expand description

Custom Tera functions for clnrm templates

Provides built-in functions for template rendering:

  • env(name) - Get environment variable
  • now_rfc3339() - Current timestamp (respects freeze_clock)
  • sha256(s) - SHA-256 hex digest
  • toml_encode(value) - Encode as TOML literal
  • fake_name() - Generate fake names for testing (test-only)
  • fake_email() - Generate fake emails for testing (test-only)
  • 50+ fake data generators for testing
  • Extended functions: UUIDs, collections, OTEL helpers, etc.

Modules§

extended
Extended template functions for comprehensive generator support

Traits§

TimestampProvider
Trait for timestamp providers (for determinism support)

Functions§

register_functions
Register all custom functions with Tera