adding ruby syntax variable replacement to template file