2017 © Pedro Peláez
 

library app-twig

Twig integration for the weew/app package.

image

weew/app-twig

Twig integration for the weew/app package.

  • Thursday, July 21, 2016
  • by weew
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

App twig provider

Build Status Code Quality Test Coverage Version Licence, (*1)

Table of contents

Installation

composer require weew/app-twig, (*2)

Introduction

This package integrates twig/twig into the weew/app framework., (*3)

Usage

Simply register the TwigProvider class on the application kernel:, (*4)

$app = new App();
$app->getKernel()->addProviders([
    TwigProvider::class,
]);

Example config

This is how your config might look like in yaml:, (*5)

twig:
  debug: true
  charset: utf-8
  base_template_class: SomeClass
  cache: /cache/path
  auto_reload: true
  auto_escape: true
  strict_variables: false
  optimizations: -1

  paths:
    - /path/to/views
    - /another/path/to/views

  namespaces:
    namespace: /path/to/namespaced/views
    another_namespace: /another/path/to/namespaced/views

The only required setting is twig.debug, all the other are optional and should be used when needed. Fur further information about twig configuration please take a look at twig documentation., (*6)

The Versions

21/07 2016

dev-master

9999999-dev

Twig integration for the weew/app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

21/07 2016

v1.2.1

1.2.1.0

Twig integration for the weew/app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

01/04 2016

v1.2.0

1.2.0.0

Twig integration for the weew/php-app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

01/04 2016

v1.1.0

1.1.0.0

Twig integration for the weew/php-app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

01/04 2016

v1.0.0

1.0.0.0

Twig integration for the weew/php-app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott