from flask import Flask, render_template

app = Flask(__name__)

posts = []

@app.route("/")
def index():
    return render_template("index.html", num_posts=len(posts))

@app.route("/p/<string:slug>/")
def show_post(slug):
    return render_template("post_view.html", slug_title=slug)

@app.route("/admin/post/")
@app.route("/admin/post/<int:post_id>/")
def post_form(post_id=None):
    return render_template("admin/post_form.html", post_id=post_id)
0787aa43e0e0d5d8cc7dde3cbd8ac123a6b8fa64
<mask token>


@app.route('/')
def index():
    return render_template('index.html', num_posts=len(posts))


<mask token>


@app.route('/admin/post/')
@app.route('/admin/post/<int:post_id>/')
def post_form(post_id=None):
    return render_template('admin/post_form.html', post_id=post_id)

<mask token>


@app.route('/')
def index():
    return render_template('index.html', num_posts=len(posts))


@app.route('/p/<string:slug>/')
def show_post(slug):
    return render_template('post_view.html', slug_title=slug)


@app.route('/admin/post/')
@app.route('/admin/post/<int:post_id>/')
def post_form(post_id=None):
    return render_template('admin/post_form.html', post_id=post_id)

<mask token>
app = Flask(__name__)
posts = []


@app.route('/')
def index():
    return render_template('index.html', num_posts=len(posts))


@app.route('/p/<string:slug>/')
def show_post(slug):
    return render_template('post_view.html', slug_title=slug)


@app.route('/admin/post/')
@app.route('/admin/post/<int:post_id>/')
def post_form(post_id=None):
    return render_template('admin/post_form.html', post_id=post_id)

from flask import Flask, render_template
app = Flask(__name__)
posts = []


@app.route('/')
def index():
    return render_template('index.html', num_posts=len(posts))


@app.route('/p/<string:slug>/')
def show_post(slug):
    return render_template('post_view.html', slug_title=slug)


@app.route('/admin/post/')
@app.route('/admin/post/<int:post_id>/')
def post_form(post_id=None):
    return render_template('admin/post_form.html', post_id=post_id)

from flask import Flask, render_template

app = Flask(__name__)

posts = []

@app.route("/")
def index():
    return render_template("index.html", num_posts=len(posts))

@app.route("/p/<string:slug>/")
def show_post(slug):
    return render_template("post_view.html", slug_title=slug)

@app.route("/admin/post/")
@app.route("/admin/post/<int:post_id>/")
def post_form(post_id=None):
    return render_template("admin/post_form.html", post_id=post_id)