2017 © Pedro Peláez
 

library sd-twig

image

ob-ivan/sd-twig

  • Tuesday, February 20, 2018
  • by ob-ivan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 362 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 89 % Grown

The README.md

Configuration

twig:
    loader:
        class: App\Twig\MyLoader
        path: templates
        rootDir: ''                     # relative to root dir provided by container
        extra:
            - '.twig'
        paths:
            __main__: ''
            templates: twig/templates
    cache:
        class: App\Twig\MyCache
        path: var/cache/twig            # relative to root dir provided by container
    extensions:
        - Twig_Extensions_Extension_Text
        - App\Twig\MyExtension          # dependencies will be injected
    extension_factories:
        - App\Twig\MyExtensionFactory
        - SD\Twig\Extension\ProfilerExtensionFactory

The Versions