Rewriting the renderValueIfNeeded method, this might cause some issues with existing templates (hence the BETA)
Added |value filter that return the raw value from a field.
Assuming that field_paragraph_color is a value list with a field-formatter set to return the key of the key|label pair the code below would set the raw key value to the color
Rewrote the drupal_view function and added support for view arguments.
Return the render array for the default display of the view 'my_view' with contextual parameters /all/167
or if you need to get a specific display
Return the render array for the block_1 display of the view 'my_view' with contextual parameters /all/167
<code {{ drupal_view('my_view','block_1',['all',167]) }}
Added a check if $request is not null on setting the global vars.
This prevents CLI tools like Console crashing with "Error: Call to a member function isSecure()".
Added a base_url global that holds the Base URl of the site, including http or https (depending on the request being secured or not.
Added a readme.md for convience.