Skip to content

A very simple Twig environment to build static sites

Notifications You must be signed in to change notification settings

cyberwani/twig-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twig Environment

A very simple Twig environment to build static sites. No WordPress, no nothing.

Setup

  1. Download or fork this repo
  2. Set your MAMP directory to the resulting folder
  3. index.php is ready-to-go (loading index.twig). If you want to create a new file you'll need...
	require_once('loader.php');
	$data = array('name' => 'Grant', 'cat' => 'Pica');
	echo $twig->render('my-twig-file.twig', $data);
  1. Your Twig files are powered by the wonderful world of Twig functions, filters, etc. However they do NOT have Timber things like |resize, |wpautop, etc.

About

A very simple Twig environment to build static sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published