from flask import render_template, request, Blueprint

core = Blueprint('core', __name__)


@core.route("/", methods=['GET', 'POST'])
def home():
    return render_template('home.html')


@core.route("/about")
def about():
    return render_template('about.html')


@core.route('/search', methods=['GET', 'POST'])
def search():
    search_str = request.args.get('globalsearch')
    return render_template('search.html', search_str=search_str)

[((62, 89), 'flask.Blueprint', 'Blueprint', (['"""core"""', '__name__'], {}), "('core', __name__)\n", (71, 89), False, 'from flask import render_template, request, Blueprint\n'), ((157, 185), 'flask.render_template', 'render_template', (['"""home.html"""'], {}), "('home.html')\n", (172, 185), False, 'from flask import render_template, request, Blueprint\n'), ((234, 263), 'flask.render_template', 'render_template', (['"""about.html"""'], {}), "('about.html')\n", (249, 263), False, 'from flask import render_template, request, Blueprint\n'), ((345, 377), 'flask.request.args.get', 'request.args.get', (['"""globalsearch"""'], {}), "('globalsearch')\n", (361, 377), False, 'from flask import render_template, request, Blueprint\n'), ((389, 442), 'flask.render_template', 'render_template', (['"""search.html"""'], {'search_str': 'search_str'}), "('search.html', search_str=search_str)\n", (404, 442), False, 'from flask import render_template, request, Blueprint\n')]