You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using EnqueueScript i would rather 'stack' my javascript from each .twig block and push it to the footer (inline)
Similar to blades '@stack' function i tested twig-stack-extension https://github.com/filhocodes/twig-stack-extension but it's not working with the timber-acf-wp-blocks.
My guess is that like the twig-stack-extension says:
This extension allows you to define a section of a "base template" that will receive contents from all the other pages, either via include, embed or extends.
The twig-stack-extension is not triggered within the timber-acf-wp-blocks.php
Timber::render( $paths, $context );
Any ideas how scripts within the blocks could be stacked and outputted inline within the footer like this example
Would be super awesome
The text was updated successfully, but these errors were encountered:
This looks really amazing, but because we rely on Timber I think we should think a bit more about integrating this feature into Timber (or creating an add-on for it).
Than Timber ACF Blocks should work with this out of the box.
Hello,
Instead of using EnqueueScript i would rather 'stack' my javascript from each .twig block and push it to the footer (inline)
Similar to blades '@stack' function i tested twig-stack-extension https://github.com/filhocodes/twig-stack-extension but it's not working with the timber-acf-wp-blocks.
My guess is that like the twig-stack-extension says:
The twig-stack-extension is not triggered within the timber-acf-wp-blocks.php
Any ideas how scripts within the blocks could be stacked and outputted inline within the footer like this example
Would be super awesome
The text was updated successfully, but these errors were encountered: