Creates a 'render' function that takes a template as a first parameter and data as a second parameter. Render function replaces the template's {{variables}} with the data property's.