title: About as_view function in Flask
body: <p>The code in this <a href="http://docs.mongodb.org/manual/tutorial/write-a-tumblelog-application-with-flask-mongoengine/" rel="noreferrer">example</a>:</p>
  
  <pre><code>posts.add_url_rule('/', view_func=ListView.as_view('list'))
  posts.add_url_rule('/&lt;slug&gt;/', view_func=DetailView.as_view('detail'))
  </code></pre>
  
  <p>I don't understand the parameter passed in the function <code>as_view</code> above, what is the purpose of <code>list</code>and <code>detail</code> here?</p>