umber-io / content-region
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/umber-io/content-region
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.