tpl_ctx

Function tpl_ctx 

Source
pub fn tpl_ctx(state: &State<'_, '_>, template: String) -> Result<String, Error>
Expand description

Evaluate a string as a template with full context (convenience version)

Usage: {{ tpl_ctx(values.dynamicTemplate) }}

This version automatically passes the full template context (values, release, pack, etc.) to the nested template, similar to Helm’s tpl $str . pattern.

§Security Features

  • Recursion limit: Shares depth counter with tpl(), max depth 10
  • Full context: Passes values, release, pack, capabilities, template