title: Using Silex FormServiceProvider without twig
body: <p>How can I render a form built with Silex <code>FormServiceProvider</code> without using twig?</p>
  
  <p>I tried both <code>$form</code> and <code>$form-&gt;createView()</code>, I also looked at the API documentation for both Form and FormView and it is not abvious to me how can I do that.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$app-&gt;get('/form', function (Request $request) use ($app) {
      // some default data for when the form is displayed the first time
      $data = array(
          'name' =&gt; 'Your name',
          'email' =&gt; 'Your email',
      );
  
      $form = $app['form.factory']-&gt;createBuilder(FormType::class, $data)
         -&gt;add('name')
         -&gt;add('email')
         -&gt;add('billing_plan', ChoiceType::class, array(
             'choices' =&gt; array(
                 1 =&gt; 'free', 
                 2 =&gt; 'small_business', 
                 3 =&gt; 'corporate'
              ),
              'expanded' =&gt; true,
         ))
         -&gt;getForm();
  
      $form-&gt;handleRequest($request);
  
      // I want return the form here
      return 'ok';
  });
  </code></pre>