2017 © Pedro Peláez
 

library rapture-template

Rapture template component

image

iuliann/rapture-template

Rapture template component

  • Monday, July 10, 2017
  • by iuliann
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 43 % Grown

The README.md

Rapture PHP Template

PhpVersion License, (*1)

Simple templates for PHP., (*2)

Requirements

  • PHP v5.4.0

Install

composer require mrjulio/rapture-template

Quick start

$tpl = new Phtml('templates/home', ['nickname' => 'John']);
echo $tpl->render();

Layout, (*3)

<!doctype html>
<html>
<head>
    <title><?= $t->title ?></title>
</head>
<body>
    <!-- current scope -->
    <?php include $t->name('partials/header') ?>

    <div id="container">
        <?= $t->content ?>
    </div>

    <!-- partials scope -->
    <?= $t->insert('partials/footer', ['title' => $t->title]) ?>
</body>
</html>

Template, (*4)

title = 'Test Title'; ?>



Hello = $t->e($nickname, 'strtolower|ucfirst') ?>!

About

Author

Iulian N. rapture@iuliann.ro, (*5)

Testing

cd ./test && phpunit

Credits

  • http://platesphp.com/

License

Rapture Template is licensed under the MIT License - see the LICENSE file for details., (*6)

The Versions

10/07 2017

v1.0.2

1.0.2.0 http://rapture.iuliann.ro

Rapture template component

  Sources   Download

MIT

The Requires

 

library

03/07 2017

dev-master

9999999-dev http://rapture.iuliann.ro

Rapture template component

  Sources   Download

MIT

The Requires

 

library

03/07 2017

v1.0.1

1.0.1.0 http://rapture.iuliann.ro

Rapture template component

  Sources   Download

MIT

The Requires

 

library

03/07 2017

v1.0

1.0.0.0 http://rapture.iuliann.ro

Rapture template component

  Sources   Download

MIT

The Requires

 

library