added template get_context function, removed .lower() on config keys