

def template_comments(doc=object()):
    disqus = {
        'shortname': disqus_config['shortname'],
        'url': request.base_url,
    }
    if hasattr(doc, 'title'):
        disqus['title'] = doc.title
    return Markup(render_template('disqus_comments.html', disqus=disqus))

dataset/ETHPy150Open jarus/flask-rst/flaskrst/modules/disqus.py template_comments/original