text: from flask import render_template
  from . import main
  from ..request import get_sources, get_articles
  # TODO: May have to import the Articles class here
  #  Views
  
  
  @main.route('/')
  def index():
      """
      Function that returns the index page and its data
  
      Example call
      top_headlines = get_sources('de','business')
  
      We can also have a get_all() function that gets all the news
      Example call from views would be
      everything
      """
      general_list = get_sources('us', 'general')
      business_list = get_sources('us', 'business')
      technology_list = get_sources('us', 'technology')
      sports_list = get_sources('us', 'sports')
      health_list = get_sources('us', 'health')
      science_list = get_sources('us', 'science')
      entertainment_list = get_sources('us', 'entertainment')
      test_args = 'News'
      return render_template('index.html',
                             test_param=test_args,
                             general=general_list,
                             business=business_list,
                             technology=technology_list,
                             sports=sports_list,
                             health=health_list,
                             science=science_list,
                             entertainment=entertainment_list)
  
  
  @main.route('/news/<id>')
  def news(id):
      """
      View articles page that returns the news article from a highlight
      """
      news_args = get_articles(id)
      highlight_args = 'Route Working!!'
      # name = f'{results_list}'
      return render_template('news.html',
                             highlight_param=highlight_args,
                             news=news_args)
  
  
  """
  We do not need another route to a sources articles since
  we will be displaying the urls tied to each article in our news list
  """
  