I’m going around in circles on this a little and need some help. Full disclosure – I posted this on Stackoverflow but got no hits.
The few references to this kind of thing I can find seem to suggest that the HTML5 canvas element should be introduced via twig as part of a theme. I get the twig process but is this approach correct? In my understanding this would be effectively adding content/structure straight into Drupal’s presentation layer which does not feel right?
However first things first .. how do I correctly display the webgl canvas element!!
Thanks in advance.