Template rendering into shell_command

I am running into an error with template rendering into shell_command component. See https://github.com/home-assistant/home-assistant/issues/3145
Can someone help?