title: Timber get_posts in template/view
body: <p>I have an ACF field that allows a choice of post types, these are then going to be put in a carousel. There could be any number as every module on the page is controlled by the admin users.</p>
  
  <p>In the carousel template, I want to be able to get the recent posts for the selected post type. I can to this with:</p>
  
  <pre><code>{% set items = fn('get_posts', {'post_type': 'team' }) %}
  </code></pre>
  
  <p>Is there a way to do this without calling it as a function? I was thinking along the lines of:</p>
  
  <pre><code>{% set items = Posts(params) %}
  </code></pre>
  
  <p>Is this possible or is the function call the only/best way?</p>
  
  <p>Thanks</p>