A light example of twig for WordPress
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Model
views
.gitignore
LICENSE
README.md
composer.json
phpcs.xml
twig-wordpress-light-example.php

README.md

Twig WordPress a Light Example

This repo contains code for "WordPress and Twig, how to separate data from views" an overview of using twig in a WordPress context.

Dependencies

Requirements

  • Php >= 7.1
  • WordPress >= 4.9.8
  • Twig >= 2.0

Php 7.1 is required for small things like constant visibility modifiers and void return type.

Extra

  1. Add link to the article
  2. Add info about not accepting pull request or issues, all of them have to be requested in the appropiated repos.