1.1. Introduction

1.1.1. Installation

Qiq is installable via Composer as qiq/qiq:

composer require qiq/qiq ^2.0

1.1.2. Getting Started

First, a template file, saved at /path/to/templates/hello.php:

Hello, {{h $name }}. That was Qiq!

And this is PHP, <?= $this->h($name) ?>.

Next, the presentation code, to generate output using the hello template:

use Qiq\Template;

$template = Template::new('/path/to/templates');
$template->setView('hello');
$template->setData([
    'name' => 'World'
]);
echo $template();

That's all there is to it.