shapecode/twig-collector-extension-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony Bundle for shapecode/twig-collector-extension.

1.3.0 2018-06-08 11:41 UTC

This package is auto-updated.

Last update: 2023-12-03 12:19:38 UTC


README

SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version License

Install instructions

Via Composer

$ composer require shapecode/twig-collector-extension-bundle

Enable the bundle in your kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Shapecode\Bundle\TwigCollectorBundle\ShapecodeTwigCollectorBundle(),
    );
}

Usage

collect stuff over all templates

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

... and output it at a specific line

{% collection stylesheets %}