<reponame>zharmedia386/Python-Programming-Exercises
from flask import Flask, render_template
from models import HelloModel

application = Flask(__name__)

@application.route('/')
def index():
   # membuat objek dari kelas HelloModel
   model = HelloModel()
   
   # mengirim model ke view
   return render_template('hello.html', model=model)

if __name__ == '__main__':
   application.run(debug=True)

from flask import Flask, render_template
from models import HelloModel

application = Flask(__name__)

@application.route('/')
def index():
   # membuat objek dari kelas HelloModel
   model = HelloModel()
   
   # mengirim model ke view
   return render_template('hello.html', model=model)

if __name__ == '__main__':
   application.run(debug=True)
# membuat objek dari kelas HelloModel # mengirim model ke view