-
hi guys! is there any macro support available? I had to include a macro in my fractal twig template(drupal 8 menus) and it didn't work. Any advice/guidance how I can fix this issue much appreciated! t…
-
Is there a way to hint assetic where to look for templates? Currently we are using namespaced twig paths for some of the templates, however I fail to see how to easily add those to the scanned list.
…
-
Great debug tool! Our company has used the dsm() in Drupal for years so we were excited to find a port of that functionality in the Symfony framework.
When I run the krumo function in a controller or…
-
Can it be supported that functions will work in the component context object.
`module.exports = {
context: {
comeVariableName: {
someFunction: function(param){ return "va…
-
When extracting on Windows a backslash is used.
```
templates\example.html.twig:12
...
```
When extracting on Linux a forwardslash is used.
```
…
-
I am using Pattern Lab Node `v6.0.1` on `Ubuntu Linux`, with Node `v18.14.0` and using the twig-php pattern engine.
I'm having trouble adding a custom Twig extension via `alter-twig.php…
-
Asume you have a file foo.twig
```twig
{% block product_info_1 %}
Some stuff
{% endblock %}
```
In file bar.twig you want just to output the block `product_info_1`
```twig
{{…
-
any plan to update it?
solution:
Twig\Extension\AbstractExtension intsead of twig_extension
Twig\TwigFunction instead of Twig_SimpleFunction
create yaml file for config: google_tag_manager.y…
-
The `include()` functions is equivalent to the `include` tag. It breaks twig.js with "Cannot call method 'replace' of undefined."
Example:
`{{ include('template.html', {foo: 'bar'}, with_context …
olets updated
7 months ago
-
It would be nice to add a TWIG function that requires a template file or uses a default template file specified in the config.yml.dist that allows the user to output data by default like this -
``` …