Jump to content

Templates (and components) Management


Recommended Posts

Hi all,

I just wanted to find out how Processwire developers manages their templates and components/partials these days. Are you guys using spex/twig/template data providers or just plain processwire setup?

Below is my setup:

- Using Spex which can be found here: http://modules.processwire.com/modules/spex/

- partials/components are stored within these folders /site/templates/partials (Spex design by default)

- there are options to set different base using using Spex

- templates are built by outputting these partials/components

- the rest of the setup is easier to read from Spex readme file rather than me trying to explain in it here.

- php short tags whenever possible.

Here are some screenshots:



So far so good with Spex setup and I quiet like it however, Spex has not been updated for quiet sometime now and not sure if this module is going to support version PW version 3 moving forward.

In the past, I've used Twig template engine (http://modules.processwire.com/modules/template-engine-twig/) created by wanze but not really compatible with Procache module which is a deal breaker for me but it works really well if you don't need Procache support.

I understand the same topics have been brought up couple of times in the past (feel free to close this down if required) but I thought I brought up the same discussion again to get some new and cool ideas how to manage templates to make your life easier as Processwire developers.

Many thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...