Is it even possible to export webform form snippets? Say I've built a small contact-form with the famous module Webform and I want to paste it in node.tpl.php (or node.twig.yml in Drupal 8) and then customize it's code manually and more easily. Can I export a ready to work HTML-PHP code from the Drupal UI somehow?
The answer is no. This is not the way Drupal theming and form building works. One of the main reasons would be that default Drupal hooks and theme functions will not work consistently if you can get a snapshot of a template, export it and change to your liking.

Let's take an example:


You create a webform with several fields.
Through this fictive module, you get the output which you can use in template files.
You use the code where you want.


The following will not work:


hook_form_alter() implementations. Fields added through dynamic conditions will not be there as well as custom CSS/JS.
Theming overrides will not work as well; say that your theme changes the way textarea elements are rendered. By exporting the form, you get the snapshot; if there is any dynamic condition, it won't work because the system cannot alter the markup anymore.


Solving the above problems would end up in a real mess, and I think this is just a tip of the iceberg.