Add twig in header/footer

Inside the page content inserting twig content is as easy as

   You template

But if we need to inject dynamic data outside of the page content we are out of luck because shortcodes do not work inside the widgets.

Instead, direct code can be used in header.php/footer.php to render dynamic content:

$sh = new \AlexaCRM\WordpressCRM\Shortcode\Twig();
try {
   echo $sh->shortcode( [], 'Hello {{user.fullname}}', 'msdyncrm_twig' );
} catch ( \Exception $e ) {
  echo $e->getMessage();