text: from flaskblog import app
  from flask import render_template, flash
  from flaskblog.forms import RegistrationForm, LoginForm
  
  @app.route('/')
  def home():
      posts = [
          {
              "title":"First Content",
              "description" : "First Description"
          },
          {
              "title":"Second Content",
              "description" : "Second Description"
          },
          {
              "title":"Third Content",
              "description" : "Third Description"
          }
      ]
      return render_template('index.html', posts = posts)
  
  @app.route('/about')
  def about():
      return render_template('about.html', title = 'About')    
  
  @app.route('/register', methods=['GET', 'POST'])
  def register():
      form = RegistrationForm()
      if form.validate_on_submit():
          flash(f'User created', 'success')
      return  render_template('register.html', title='Register', form = form)
  
  @app.route('/login', methods=['GET', 'POST'])
  def login():
      form = LoginForm()
      if form.validate_on_submit():
          flash(f'User Logged in', 'success')
      return  render_template('login.html', title='Login', form = form)    