def pass_data_on(input_data, input_function, output_data):
    """Helper to pass data from one data structure to another.

    :param input_data the input data in any user format
    :param input_function a function to converte input_data to an output format. Must contain all methods in TemplateEncoder.
    :param output_data a data holder for the data to be put into."""
    input_function(input_data, output_data)
    return output_data
