Skip to content

Latest commit

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Shapecode - Twig Collector Extension

SensioLabsInsightLatest Stable VersionTotal DownloadsLatest Unstable VersionLicense

Install instructions

Via Composer

$ composer require shapecode/twig-collector-extension

Add Extension to your Twig Environment

<?phpuseTwig\Environment;
useShapecode\Twig\Extensions\Extension\CollectorExtension;
$twig = newEnvironment($loader);
$twig->addExtension(newCollectorExtension());

Usage

collect stuff over all templates

{% collectorstylesheets %}
<style>.body {margin-bottom: 10px; }</style>
{% endcollector %}

... and output it at a specific line

{% collectionstylesheets %}

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages