title: Render .twig file when shortcode called in WordPress?
body: <p>I've been firefighting this for a while and I'm struggling with getting this shortcode to render this Twig partial when it is called. Anyone have any advice?</p>
  
  <p>Thanks!</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>&lt;?php  namespace loc\wp\lib;
  use \Timber as Timber;
  use \Twig_SimpleFunction as Twig_SimpleFunction;
  class LOCShortcodes {
    public function addSlider() {
      add_shortcode('feature-slider', 'feature_slider');
      function feature_slider() {
        return Timber::render('template-feature-slider.twig');
      }
    }
  }
  </code></pre>