[TASK] Add optional template variable assignment