def METHOD_NAME(self, query: QueryClass):
    """Gets a template.
    :rtype : str
    :param query: get or put params
    :return: template result as json
    """
    tempfile = get_param(query, "file", "")
    tidx = get_param(query, "idx", "0")
    return get_template("templates", tidx, tempfile)