Function generate_from_template

Generate a new file from a template file

Generate a new file from a template file by % inserting given variables into the placeholders. The placeholders in the template file are denoted by ''{{ variable_name }}''.

Input:

the variable and the second one denotes the value.