GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - leafsphp/veins: Templating engine for Leaf PHP framework

BranchesTags
Open more actions menu

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.php_cs.dist.php
.php_cs.dist.php
 
 
composer.json
composer.json
 
 
readme.md
readme.md
 
 

Repository files navigation

Leaf Veins

Veins is a simple, lightweight, and fast templating engine for PHP. It is designed to be easy to use and easy to extend.

Installation

You can install Veins using the Leaf CLI:

leaf install veins

Or with composer:

composer require leafs/veins

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use Leaf\Veins;

$veins = new Veins();
$veins->configure([
    'templateDir' => __DIR__ . '/views/',
    'cacheDir' => __DIR__ . '/cache/',
]);
$veins->render('hello', ['name' => 'John']);
<!-- views/hello.php -->
<h1>Hello, {$name}!</h1>

Configuration

You can configure Veins by passing an array to the configure method:

$veins->configure([
    'checksum' => [],
    'charset' => 'UTF-8',
    'debug' => false,
    'templateDir' => 'views/',
    'cacheDir' => 'cache/',
    'baseUrl' => '',
    'phpEnabled' => false,
    'autoEscape' => true,
    'sandbox' => true,
    'removeComments' => false,
    'customTags' => [],
]);

Find the full documentation at leafphp.dev/modules/views/veins.

About

Templating engine for Leaf PHP framework

Topics

leafleaf-veinsleafphpphp-template-enginetemplate-engine

Resources

Readme

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

3 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.