SproutCMS

This is the code documentation for the SproutCMS project

class TwigSkinLoader

File loader for twig templates.

This obeys the same path rules as PHP views:
 - using the unavailable skin
 - using module/ sprout/ skin/ prefixes

TODO Some actual caching.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-08-16
**/
class NewClassName extends TwigSkinLoader {
    
    public function isFresh (string $name, int $time) {
        // Method code goes here
    }
    
    public function exists (string $name) {
        // Method code goes here
    }
    
    public function getCacheKey (string $name) {
        // Method code goes here
    }
    
    /**
    * Find a template for the current subsite skin.
    **/
    protected function findTemplate (string $name) {
        // Method code goes here
    }
    
    public function getSourceContext (string $name) {
        // Method code goes here
    }
    
}
?>