

@bp.route('/#{controller}/#{action}')
def #{action}():
    return render_template('#{controller}/#{action}.html')



@bp.route('/#{controller}/#{action}')
def #{action}():
    return render_template('#{controller}/#{action}/#{action}.html')

Fix a bug in action template.