PHP code example of north / template
1. Go to this page and download the library: Download north/template 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/ */
north / template example snippets
use North\Template\Template;
$template = new Template('path/to/templates');
$template->render('index');
$this->extend('layouts/app', ['title' => 'Startpage'])
<!doctype html>
<html>
<head>
<title> echo $this->escape($title)
<div class="content">
<h1> echo $this->escape($title)