2017 © Pedro Peláez
 

library bind-render

Binds icanboogie/render to ICanBoogie

image

icanboogie/bind-render

Binds icanboogie/render to ICanBoogie

  • Sunday, March 18, 2018
  • by olvlvl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 686 Installations
  • PHP
  • 3 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

bind-render

Release Code Quality Code Coverage Packagist, (*1)

The icanboogie/bind-render package binds icanboogie/render to ICanBoogie, using its autoconfig feature. It adds various getters and methods to the Application instance and a template resolver that uses the application paths to look for templates., (*2)

<?php

/* @var ICanBoogie\Application $app */

echo get_class($app->template_engines);  // ICanBoogie\Render\EngineCollection
echo get_class($app->template_resolver); // ICanBoogie\Binding\Render\ApplicationTemplateResolver
echo get_class($app->renderer);          // ICanBoogie\Render\Renderer

$app->render($app->models['articles']->one);

The shared BasicTemplateResolver instance is replaced by an ApplicationTemplateResolver instance during the TemplateResolver::alter event of class TemplateResolver\AlterEvent., (*3)

Enhanced template resolver

ApplicationTemplateResolver extends the template resolver used by icanboogie/render and icanboogie/view to search templates in the application paths (see Multi-site support). Also, the "//" prefix can be used to search for templates from these paths .e.g. "//my/special/templates/_form"., (*4)

Defining engines using render config fragments

The preferred method to define render engines is using render config fragments, because they can be synthesized and cached., (*5)

The following example demonstrates how to define and engine for the .phtml templates:, (*6)

<?php

// config/render.php

namespace ICanBoogie\Binding\Render;

use ICanBoogie\Render\PHPEngine;

return [

    RenderConfig::ENGINES => [

        '.phtml' => PHPEngine::class

    ]

];

Continuous Integration

The project is continuously tested by GitHub actions., (*7)

Tests Static Analysis Code Style, (*8)

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

License

icanboogie/bind-render is released under the BSD-3-Clause., (*11)

The Versions

18/03 2018

5.0.x-dev

5.0.9999999.9999999-dev https://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

18/03 2018

dev-master

9999999-dev https://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

18/03 2018

v0.6.0

0.6.0.0 https://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

13/04 2017

0.6.x-dev

0.6.9999999.9999999-dev https://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

05/11 2016

v0.5.0

0.5.0.0 http://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

08/03 2015

v0.3.0

0.3.0.0 http://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

27/02 2015

v0.2.2

0.2.2.0 http://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

26/02 2015

v0.2.1

0.2.1.0 http://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

08/02 2015

v0.2.0

0.2.0.0 http://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires

 

06/02 2015

v0.1.0

0.1.0.0 http://icanboogie.org/

Binds icanboogie/render to ICanBoogie

  Sources   Download

BSD-3-Clause

The Requires