Command_line switch command template

It would be nice to have possibility to accept template in command_on and off:

command_on: switch_command {{ states ('input_number.number') }}