Skip to content

Commit

Permalink
Merge pull request #18 from mkdok/main
Browse files Browse the repository at this point in the history
feat(twig v3): Use apply spaceless
  • Loading branch information
podarok authored May 5, 2023
2 parents fd70af6 + 0d26c79 commit 1a36955
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Custom core modules for Open Y distrubution.",
"type": "drupal-module",
"require": {
"ymcatwincities/openy": "*"
"ymcatwincities/openy": "*",
"twig/twig": "^2.7 || ^3.0"
},
"license": "GPL-2.0+",
"minimum-stability": "dev"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* @ingroup themeable
*/
#}
{% spaceless %}
{% apply spaceless %}
<dl>
{% for type in types %}
<dt>{{ type.link }}</dt>
{% endfor %}
</dl>
{% endspaceless %}
{% endapply %}

0 comments on commit 1a36955

Please sign in to comment.