mirror of
https://github.com/getgrav/grav.git
synced 2025-11-18 03:00:48 +01:00
wip
This commit is contained in:
@@ -43,7 +43,8 @@
|
|||||||
"antoligy/dom-string-iterators": "^1.0",
|
"antoligy/dom-string-iterators": "^1.0",
|
||||||
"miljar/php-exif": "^0.6.4",
|
"miljar/php-exif": "^0.6.4",
|
||||||
"composer/ca-bundle": "^1.0",
|
"composer/ca-bundle": "^1.0",
|
||||||
"dragonmantank/cron-expression": "^1.2"
|
"dragonmantank/cron-expression": "^1.2",
|
||||||
|
"phive/twig-extensions-deferred": "^1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"codeception/codeception": "^2.4",
|
"codeception/codeception": "^2.4",
|
||||||
|
|||||||
45
composer.lock
generated
45
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "ee3b919ebe2a385d66074d22125c4317",
|
"content-hash": "62efd8660a745d3e62621d0432f6ef91",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "antoligy/dom-string-iterators",
|
"name": "antoligy/dom-string-iterators",
|
||||||
@@ -1017,6 +1017,49 @@
|
|||||||
],
|
],
|
||||||
"time": "2017-06-19T01:22:40+00:00"
|
"time": "2017-06-19T01:22:40+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "phive/twig-extensions-deferred",
|
||||||
|
"version": "v1.0.2",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/rybakit/twig-deferred-extension.git",
|
||||||
|
"reference": "5a2426d622afa74034e754ca5ea1d1ff7887627f"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/rybakit/twig-deferred-extension/zipball/5a2426d622afa74034e754ca5ea1d1ff7887627f",
|
||||||
|
"reference": "5a2426d622afa74034e754ca5ea1d1ff7887627f",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"twig/twig": "~1.18"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Phive\\Twig\\Extensions\\Deferred\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Eugene Leonovich",
|
||||||
|
"email": "gen.work@gmail.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "An extension for Twig that allows to defer block rendering",
|
||||||
|
"homepage": "https://github.com/rybakit/twig-extensions-deferred",
|
||||||
|
"keywords": [
|
||||||
|
"defer",
|
||||||
|
"extension",
|
||||||
|
"lazy",
|
||||||
|
"twig"
|
||||||
|
],
|
||||||
|
"time": "2017-03-17T21:39:21+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "pimple/pimple",
|
"name": "pimple/pimple",
|
||||||
"version": "v3.2.3",
|
"version": "v3.2.3",
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ use Grav\Common\Page\Page;
|
|||||||
use Grav\Common\Page\Pages;
|
use Grav\Common\Page\Pages;
|
||||||
use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator;
|
use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator;
|
||||||
use RocketTheme\Toolbox\Event\Event;
|
use RocketTheme\Toolbox\Event\Event;
|
||||||
|
use Phive\Twig\Extensions\Deferred\DeferredExtension;
|
||||||
|
|
||||||
class Twig
|
class Twig
|
||||||
{
|
{
|
||||||
@@ -159,6 +160,7 @@ class Twig
|
|||||||
$this->twig->addExtension(new \Twig_Extension_Debug());
|
$this->twig->addExtension(new \Twig_Extension_Debug());
|
||||||
}
|
}
|
||||||
$this->twig->addExtension(new TwigExtension());
|
$this->twig->addExtension(new TwigExtension());
|
||||||
|
$this->twig->addExtension(new DeferredExtension());
|
||||||
|
|
||||||
$this->grav->fireEvent('onTwigExtensions');
|
$this->grav->fireEvent('onTwigExtensions');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user