2017 © Pedro Peláez
 

library c5-twig-templates

Makes it possible to use twig templates in concrete5.

image

mainio/c5-twig-templates

Makes it possible to use twig templates in concrete5.

  • Tuesday, June 28, 2016
  • by ahukkanen
  • Repository
  • 4 Watchers
  • 2 Stars
  • 379 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 1 % Grown

The README.md

Twig templates for concrete5

This is a composer package that provides twig templates possibility for concrete5. Currently it only works with single pages, in the future it should also work in other areas of concrete5., (*1)

How to use?

Add a composer.json file into your concrete5 package's directory. Into that file, add the following content:, (*2)

{
    "require": {
        "mainio/c5-twig-templates": "*"
    }
}

And then run composer install in the same directory. After this, add the following on top of your package controller (after the namespace definition):, (*3)

include(dirname(__FILE__) . '/vendor/autoload.php');

When developing your twig views, it is also suggested to add the following configuration to your application/config/app.php:, (*4)

return array(
    // ... some other configs ...
    'twig_debug' => true
    // ... some other configs ...
);

This prevents the templates from being loaded from the compile cache which makes developing a lot more fun as you do not need to flush your cache after every page load., (*5)

If you are looking for code examples, e.g. the following package utilizes this package:, (*6)

https://github.com/mainio/c5_symfony_forms_example, (*7)

Roadmap

  • Make the templates work in themes
  • Make the templates work in block views

License

Licensed under the MIT license. See LICENSE for more information., (*8)

Copyright (c) 2015 Mainio Tech Ltd., (*9)

The Versions

28/06 2016

dev-master

9999999-dev https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

28/06 2016

v0.1.9

0.1.9.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

28/06 2016

v0.1.8

0.1.8.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

28/06 2016

dev-release/0.2

dev-release/0.2 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

28/06 2016

v0.1.7

0.1.7.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

28/06 2016

v0.1.6

0.1.6.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

28/06 2016

v0.1.5

0.1.5.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

28/06 2016

v0.1.4

0.1.4.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

28/06 2016

v0.1.3

0.1.3.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

11/02 2016

v0.1.2

0.1.2.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

08/02 2016

dev-symfony-version-update

dev-symfony-version-update https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

04/02 2016

v0.1.1

0.1.1.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates

30/07 2015

v0.1

0.1.0.0 https://github.com/mainio/c5pkg_twig_templates

Makes it possible to use twig templates in concrete5.

  Sources   Download

MIT

The Requires

 

twig concrete5 templates