edgedesign/twig-external-content-bundle

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

Bundle that adds twig macro to serve content from external site.

0.2 2014-01-10 16:47 UTC

This package is not auto-updated.

Last update: 2021-03-12 11:09:35 UTC


README

This is a simple bundle, that adds new Twig macro called loadExternalContent.

Usage

{{ loadExternalContent('http://google.com') }}

It is highly encouraged to apply some sanitization filter. The choice of right filter is left up to author of the template.

Caching

Caching is done on the background by Guzzle. It tries to negotiate optimum cache-control with HTTP server. It is also possible to set default TTL in Resources/config/config.yml.