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 - colinrotherham/tiny-engine: A very little PHP templating engine, a nano framework

BranchesTags
Open more actions menu

Latest commit

 

History

151 Commits
151 Commits

Folders and files

NameName
Last commit message
Last commit date
assets/css
assets/css
 
 
engine
engine
 
 
resources
resources
 
 
templates
templates
 
 
views
views
 
 
.gitignore
.gitignore
 
 
.htaccess
.htaccess
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
config.php
config.php
 
 
config.queries.php
config.queries.php
 
 
config.routes.php
config.routes.php
 
 

Repository files navigation

Tiny Engine

How does it work?

Tiny engine is a very simple master/view/partial templating engine. It also throws in a little bit of APC caching for high-speed and supports language resource files for multi-lingual apps.

Configuring the engine

It's over to you really, stick it into a new Apache site and see how it runs.

  • Page templates and partials are defined here:
	/config.php
  • Templates, views and partials are stored as follows:
	/templates/template-page.php
    /views/view-contact.php
    /views/view-home.php
    /views/partials/partial-address.php
  • Resources for different locales are stored as follows:
	/resources/en-GB.php
	/resources/en-US.php
  • Finally, to map a route's URL to a view simply add it the route config (View data and templates for each route are bound here too):
	/config.routes.php

About

A very little PHP templating engine, a nano framework

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — 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.