umber-io / content-region
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (0.1) of this package.
0.1
2016-06-16 23:11 UTC
Requires
- php: >=5.6
Requires (Dev)
- mmoreram/php-formatter: ~1.0
- phpunit/phpunit: ^5
- squizlabs/php_codesniffer: 2.3.0
- symfony/browser-kit: ~2.3|~3.0
- symfony/framework-bundle: ~2.3|~3.0
- symfony/phpunit-bridge: ^2.7.4|~3.0
- symfony/twig-bundle: ~2.3|~3.0
- twig/twig: ^1
This package is not auto-updated.
Last update: 2020-01-19 14:45:21 UTC
README
Umber Content Region is a small library that aims to provided a consistent and simple API for implementing template functionality without being framework or template engine specific. The crux of the code base is decoupled and stand-alone, with this are implementations for frameworks and template engines.
Read the wiki for implementation guides and documentation.
In short
# some.twig
<div class="content">
{% region 'main-body' %}
</div>
Accompanied with an instance of AbstractRenderer
and AbstractLoader
will allow you to have dynamic content in your templates without all the fuss in your controllers.