PHP code example of stefgodin / notmpl

1. Go to this page and download the library: Download stefgodin/notmpl library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

stefgodin / notmpl example snippets


 // index.php

use StefGodin\NoTmpl\NoTmpl;

in.php', ['title' => 'My custom title']);
/*
<div>A header</div>

<h1>My custom title</h1>
<div>
  <div>
    <h2>My content</h2>
  </div>
</div>

<div>A footer</div>
*/

 // main.php

namespace StefGodin\NoTmpl;

/**
 * @var string $title
 */

 // page.php
namespace StefGodin\NoTmpl;