PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 63 This week: 1All time: 10,388 This week: 560Up
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: 30
All time rank: 16897 in Nigeria Nigeria
Week rank: 416 Up8 in Nigeria Nigeria Down
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  
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  /  src  
File Role Description
Files folder imageCompiler (4 files)
  Plain text file init.php Class Class source

  Files folder image Files  /  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  /  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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:63
This week:1
All time:10,388
This week:560Up