codeguy/Slim-Extras — pull request #103 by Prefinem (2014-09-28 01:40:57+00:00)
Title: Use mustache to the fullest abilities

Having used mustache for 95% of my projects, this is my standard setup (with or without Slim)

This allows you to pass the template name (index vs index.mustache) and allow you to still use partials (a very powerful feature of Mustache)

This does require that you have the template directory defined, and a directory called 'partials' inside the templates directory but if you use Mustache a lot, this is probably a very common setup for you.