module

Cjules::TemplateRenderer

TemplateRenderer processes template strings with variable substitution. Supports:

  • {{.File "path"}} - Inserts file content
  • {{.GitDiff}} - Inserts git diff output
  • {{.Var "name"}} - Inserts user-defined variables

Instance methods

parse_vars(var_args : Array(String)) : Variables

Parse --var arguments from CLI (format: key=value)

Source
render(template : String, vars : Variables = Variables.new) : String

Render a template string with variable substitution

Source

Nested types