PHP Classes

Bitter PHP Template Engine: Process template files that can be nested

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 64 All time: 10,406 This week: 86Up
Version License PHP version Categories
bittr_template_engin 1.0.0BSD License5PHP 5, Files and Folders, Templates
Description 

Author

This package can process template files that can be nested.

It takes an array of template files as a parameter.

It processes the first template file in the array by replacing marks by the result of the processing of other template files.

The class returns a string as the result of processing all template files.

Picture of chrys ugwu
  Performance   Level  
Name: chrys ugwu <contact>
Classes: 16 packages by
Country: Nigeria Nigeria
Age: 31
All time rank: 16807 in Nigeria Nigeria
Week rank: 200 Up6 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 4x

Example

<?php

require 'src' . DIRECTORY_SEPARATOR . 'init.php';

echo (new
Compiler\Render())->view(['inc']);


Details

Bitter Template Engine

PHP template Engine

Config Methods

Config::setExtension([string] $extension) : changes default template file extension. Config::setTemplatePath([string] $path) : changes default template files path. Config::setLogDir([string] $path) : changes default log directory. Config::setTimeZone([string] $timezone_identifier) : changes default timezone identifier. Config::setTags([string] $opening_tag, ([string] $closing_tag)) : changes default template tags. Config::listAttribute() : list all defined attributes. Config::listOut([bool] $with_extension) : lists all the template files.

References

inc : includes and evaluates the specified file req : alias of inc but throws an error upon failure


  Files folder image Files (12)  
File Role Description
Files folder imagesrc (1 file, 1 directory)
Files folder imageTemplates (4 files)
Plain text file index.php Example Example script
Plain text file LICENSE Lic. License text
Plain text file README.md Doc. Documentation

  Files folder image Files (12)  /  src  
File Role Description
Files folder imageCompiler (4 files)
  Plain text file init.php Class Class source

  Files folder image Files (12)  /  src  /  Compiler  
File Role Description
  Plain text file Config.php Class Class source
  Plain text file Helpers.php Class Class source
  Plain text file Processor.php Class Class source
  Plain text file Render.php Class Class source

  Files folder image Files (12)  /  Templates  
File Role Description
  Plain text file inc.bt Data Auxiliary data
  Plain text file make.bt Data Auxiliary data
  Plain text file new.bt Data Auxiliary data
  Plain text file req.bt Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:64
This week:0
All time:10,406
This week:86Up