generates file from template + properties file