title: How to var_dump variables in twig templates?
body: <p>View layer pattern where you only present what you have been given is fine and all, but how do you know what is available? Is there a "list all defined variables" functionality in TWIG? <em>Is there a way to dump a variable?</em></p>
  
  <p>The solution I found by searching for it was to define a function where I can use my <a href="https://github.com/alkemann/AL13/tree/master/al13_debug">existing php debug tools</a> by <a href="http://twig.sensiolabs.org/doc/advanced.html#functions">injecting a function</a>, but all references I have found to that includes these nice two lines of code, but nowhere is it specified where to place them. Going by the fact that they need a <strong>$loader</strong> variable defined, I tried /app/config/autoload.php but the $loader there was the wrong kind. <em>Where do I place the php code for adding a twig function?</em></p>