diff --git a/bootstrap/start.php b/bootstrap/start.php index 3619184..953f642 100644 --- a/bootstrap/start.php +++ b/bootstrap/start.php @@ -54,7 +54,7 @@ */ $primer = Primer::start([ 'basePath' => __DIR__.'/..', - 'templateClass' => HandlebarsTemplateEngine::class, + 'templateClass' => TwigTemplateEngine::class, ]); return $primer; diff --git a/composer.json b/composer.json index ef05853..0e27171 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "require": { "php": ">=5.5.9", "rareloop/primer-core": "2.0.*", - "rareloop/primer-template-engine-handlebars": "1.0.*", + "rareloop/primer-template-engine-twig": "1.0.*", "altorouter/altorouter": "1.1.0" }, diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..a89359b --- /dev/null +++ b/composer.lock @@ -0,0 +1,1693 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "content-hash": "ed2fb86d88c7ca23d9653639b5ee9b0f", + "packages": [ + { + "name": "altorouter/altorouter", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/dannyvankooten/AltoRouter.git", + "reference": "09d9d946c546bae6d22a7654cdb3b825ffda54b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dannyvankooten/AltoRouter/zipball/09d9d946c546bae6d22a7654cdb3b825ffda54b4", + "reference": "09d9d946c546bae6d22a7654cdb3b825ffda54b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "AltoRouter.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Danny van Kooten", + "email": "dannyvankooten@gmail.com", + "homepage": "http://dannyvankooten.com/" + }, + { + "name": "Koen Punt", + "homepage": "https://github.com/koenpunt" + }, + { + "name": "niahoo", + "homepage": "https://github.com/niahoo" + } + ], + "description": "A lightning fast router for PHP", + "homepage": "https://github.com/dannyvankooten/AltoRouter", + "keywords": [ + "lightweight", + "router", + "routing" + ], + "time": "2014-04-16T09:44:40+00:00" + }, + { + "name": "gajus/dindent", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/gajus/dindent.git", + "reference": "a25c3e29a8a14ab7bc686091af70a6e120088078" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/gajus/dindent/zipball/a25c3e29a8a14ab7bc686091af70a6e120088078", + "reference": "a25c3e29a8a14ab7bc686091af70a6e120088078", + "shasum": "" + }, + "require": { + "php": ">=5.3" + }, + "require-dev": { + "satooshi/php-coveralls": "dev-master" + }, + "type": "library", + "autoload": { + "psr-4": { + "Gajus\\Dindent\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Gajus Kuizinas", + "email": "gk@anuary.com" + } + ], + "description": "HTML indentation library for development and testing.", + "homepage": "https://github.com/gajus/dindent", + "keywords": [ + "format", + "html", + "indent" + ], + "time": "2014-04-16T09:40:22+00:00" + }, + { + "name": "michelf/php-markdown", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/michelf/php-markdown.git", + "reference": "155287e4222d2dd69b6a21221617b50668d5892e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/michelf/php-markdown/zipball/155287e4222d2dd69b6a21221617b50668d5892e", + "reference": "155287e4222d2dd69b6a21221617b50668d5892e", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-lib": "1.4.x-dev" + } + }, + "autoload": { + "psr-0": { + "Michelf": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Michel Fortin", + "email": "michel.fortin@michelf.ca", + "homepage": "https://michelf.ca/", + "role": "Developer" + }, + { + "name": "John Gruber", + "homepage": "https://daringfireball.net/" + } + ], + "description": "PHP Markdown", + "homepage": "https://michelf.ca/projects/php-markdown/", + "keywords": [ + "markdown" + ], + "time": "2015-12-22T18:18:12+00:00" + }, + { + "name": "psr/log", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2016-10-10T12:19:37+00:00" + }, + { + "name": "rareloop/primer-core", + "version": "v2.0.2", + "source": { + "type": "git", + "url": "https://github.com/Rareloop/primer-core.git", + "reference": "98209c3303a6d80f58adeb2f2b2b98771bbc5c1c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Rareloop/primer-core/zipball/98209c3303a6d80f58adeb2f2b2b98771bbc5c1c", + "reference": "98209c3303a6d80f58adeb2f2b2b98771bbc5c1c", + "shasum": "" + }, + "require": { + "gajus/dindent": "1.0.*", + "michelf/php-markdown": "1.5.*", + "php": ">=5.5", + "symfony/console": "2.5.*", + "symfony/debug": "2.7.*", + "symfony/event-dispatcher": "2.3.*", + "symfony/finder": "2.7.*" + }, + "require-dev": { + "rareloop/primer-template-engine-handlebars": "1.0.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "Rareloop\\Primer\\": "src/Primer" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Core Primer framework", + "time": "2016-06-20T11:55:27+00:00" + }, + { + "name": "rareloop/primer-template-engine-twig", + "version": "v1.0.2", + "source": { + "type": "git", + "url": "https://github.com/Rareloop/primer-template-engine-twig.git", + "reference": "8164fd8234114e0540f44948db3538d45dc6a7b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Rareloop/primer-template-engine-twig/zipball/8164fd8234114e0540f44948db3538d45dc6a7b4", + "reference": "8164fd8234114e0540f44948db3538d45dc6a7b4", + "shasum": "" + }, + "require": { + "php": ">=5.5", + "twig/twig": "~1.0" + }, + "require-dev": { + "rareloop/primer-core": "2.0.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "Rareloop\\Primer\\TemplateEngine\\Twig\\": "src/Twig" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Twig template engine for Primer", + "time": "2016-05-18T11:46:19+00:00" + }, + { + "name": "symfony/console", + "version": "v2.5.12", + "target-dir": "Symfony/Component/Console", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "a43e750b4c74f3bdfca77c79c343033d35a6cd6e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/a43e750b4c74f3bdfca77c79c343033d35a6cd6e", + "reference": "a43e750b4c74f3bdfca77c79c343033d35a6cd6e", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/event-dispatcher": "~2.1" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\Console\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony Console Component", + "homepage": "http://symfony.com", + "time": "2015-02-08T07:07:45+00:00" + }, + { + "name": "symfony/debug", + "version": "v2.7.48", + "source": { + "type": "git", + "url": "https://github.com/symfony/debug.git", + "reference": "fc4afe37fdb5e1b26089a7039f3c6322ff5e2116" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/debug/zipball/fc4afe37fdb5e1b26089a7039f3c6322ff5e2116", + "reference": "fc4afe37fdb5e1b26089a7039f3c6322ff5e2116", + "shasum": "" + }, + "require": { + "php": ">=5.3.9", + "psr/log": "~1.0" + }, + "conflict": { + "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2" + }, + "require-dev": { + "symfony/class-loader": "~2.2", + "symfony/http-kernel": "~2.3.24|~2.5.9|^2.6.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Debug\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Debug Component", + "homepage": "https://symfony.com", + "time": "2018-05-11T17:00:11+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v2.3.42", + "target-dir": "Symfony/Component/EventDispatcher", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "fd6d162d97bf3e6060622e5c015af39ca72e33bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/fd6d162d97bf3e6060622e5c015af39ca72e33bc", + "reference": "fd6d162d97bf3e6060622e5c015af39ca72e33bc", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "symfony/dependency-injection": "~2.0,>=2.0.5" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony EventDispatcher Component", + "homepage": "https://symfony.com", + "time": "2016-04-04T09:22:54+00:00" + }, + { + "name": "symfony/finder", + "version": "v2.7.48", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "34226a3aa279f1e356ad56181b91acfdc9a2525c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/34226a3aa279f1e356ad56181b91acfdc9a2525c", + "reference": "34226a3aa279f1e356ad56181b91acfdc9a2525c", + "shasum": "" + }, + "require": { + "php": ">=5.3.9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Finder Component", + "homepage": "https://symfony.com", + "time": "2018-05-14T06:36:14+00:00" + }, + { + "name": "twig/twig", + "version": "v1.35.3", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "b48680b6eb7d16b5025b9bfc4108d86f6b8af86f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/b48680b6eb7d16b5025b9bfc4108d86f6b8af86f", + "reference": "b48680b6eb7d16b5025b9bfc4108d86f6b8af86f", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "^2.7", + "symfony/phpunit-bridge": "^3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.35-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "http://twig.sensiolabs.org/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "http://twig.sensiolabs.org", + "keywords": [ + "templating" + ], + "time": "2018-03-20T04:25:58+00:00" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "shasum": "" + }, + "require": { + "php": ">=5.3,<8.0-DEV" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2015-06-14T21:17:01+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2017-09-11T18:02:19+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "4.3.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "94fd0001232e47129dd3504189fa1c7225010d08" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08", + "reference": "94fd0001232e47129dd3504189fa1c7225010d08", + "shasum": "" + }, + "require": { + "php": "^7.0", + "phpdocumentor/reflection-common": "^1.0.0", + "phpdocumentor/type-resolver": "^0.4.0", + "webmozart/assert": "^1.0" + }, + "require-dev": { + "doctrine/instantiator": "~1.0.5", + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^6.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2017-11-30T07:14:17+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.4.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "phpdocumentor/reflection-common": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "time": "2017-07-14T14:27:02+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "1.7.6", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/33a7e3c4fda54e912ff6338c48823bd5c0f0b712", + "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "sebastian/comparator": "^1.1|^2.0|^3.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5|^3.2", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.7.x-dev" + } + }, + "autoload": { + "psr-0": { + "Prophecy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "time": "2018-04-18T13:57:24+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "2.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "phpunit/php-file-iterator": "~1.3", + "phpunit/php-text-template": "~1.2", + "phpunit/php-token-stream": "~1.3", + "sebastian/environment": "^1.3.2", + "sebastian/version": "~1.0" + }, + "require-dev": { + "ext-xdebug": ">=2.1.4", + "phpunit/phpunit": "~4" + }, + "suggest": { + "ext-dom": "*", + "ext-xdebug": ">=2.2.1", + "ext-xmlwriter": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "time": "2015-10-06T15:47:00+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2017-11-27T13:52:08+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.9", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2017-02-26T11:10:40+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "1.4.12", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "time": "2017-12-04T08:55:13+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "4.8.36", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-pcre": "*", + "ext-reflection": "*", + "ext-spl": "*", + "php": ">=5.3.3", + "phpspec/prophecy": "^1.3.1", + "phpunit/php-code-coverage": "~2.1", + "phpunit/php-file-iterator": "~1.4", + "phpunit/php-text-template": "~1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "~2.3", + "sebastian/comparator": "~1.2.2", + "sebastian/diff": "~1.2", + "sebastian/environment": "~1.3", + "sebastian/exporter": "~1.2", + "sebastian/global-state": "~1.0", + "sebastian/version": "~1.0", + "symfony/yaml": "~2.1|~3.0" + }, + "suggest": { + "phpunit/php-invoker": "~1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.8.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2017-06-21T08:07:12+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "2.3.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": ">=5.3.3", + "phpunit/php-text-template": "~1.2", + "sebastian/exporter": "~1.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "time": "2015-10-02T06:51:40+00:00" + }, + { + "name": "sebastian/comparator", + "version": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/diff": "~1.2", + "sebastian/exporter": "~1.2 || ~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2017-01-29T09:50:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "1.4.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "time": "2017-05-22T07:24:03+00:00" + }, + { + "name": "sebastian/environment", + "version": "1.3.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea", + "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8 || ^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2016-08-18T05:49:44+00:00" + }, + { + "name": "sebastian/exporter", + "version": "1.2.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/recursion-context": "~1.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2016-06-17T09:04:28+00:00" + }, + { + "name": "sebastian/global-state", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2015-10-12T03:26:01+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2016-10-03T07:41:43+00:00" + }, + { + "name": "sebastian/version", + "version": "1.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "shasum": "" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2015-06-21T13:59:46+00:00" + }, + { + "name": "symfony/yaml", + "version": "v3.3.17", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "af615970e265543a26ee712c958404eb9b7ac93d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/af615970e265543a26ee712c958404eb9b7ac93d", + "reference": "af615970e265543a26ee712c958404eb9b7ac93d", + "shasum": "" + }, + "require": { + "php": "^5.5.9|>=7.0.8" + }, + "require-dev": { + "symfony/console": "~2.8|~3.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.3-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Yaml Component", + "homepage": "https://symfony.com", + "time": "2018-01-20T15:04:53+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/assert.git", + "reference": "0df1908962e7a3071564e857d86874dad1ef204a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a", + "reference": "0df1908962e7a3071564e857d86874dad1ef204a", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2018-01-29T19:49:41+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.5.9" + }, + "platform-dev": [] +} diff --git a/patterns/components/test/first/data.json b/patterns/components/test/first/data.json new file mode 100644 index 0000000..e69de29 diff --git a/patterns/components/test/first/template.twig b/patterns/components/test/first/template.twig new file mode 100644 index 0000000..e69de29 diff --git a/patterns/elements/forms/button/data.json b/patterns/elements/forms/button/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/forms/button/template.hbs b/patterns/elements/forms/button/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/forms/button/template.hbs rename to patterns/elements/forms/button/template.twig diff --git a/patterns/elements/forms/input/data.json b/patterns/elements/forms/input/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/forms/input/template.hbs b/patterns/elements/forms/input/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/forms/input/template.hbs rename to patterns/elements/forms/input/template.twig diff --git a/patterns/elements/forms/input~email/data.json b/patterns/elements/forms/input~email/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/headings/h1/data.json b/patterns/elements/headings/h1/data.json old mode 100755 new mode 100644 index ba0c70f..18ef7c0 --- a/patterns/elements/headings/h1/data.json +++ b/patterns/elements/headings/h1/data.json @@ -1,3 +1,3 @@ { - "title": "Lorem ipsum dolor sit amet consectetur" + "title": "H1" } \ No newline at end of file diff --git a/patterns/elements/headings/h1/template.hbs b/patterns/elements/headings/h1/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/headings/h1/template.hbs rename to patterns/elements/headings/h1/template.twig diff --git a/patterns/elements/headings/h2/data.json b/patterns/elements/headings/h2/data.json old mode 100755 new mode 100644 index ba0c70f..8fd2cf9 --- a/patterns/elements/headings/h2/data.json +++ b/patterns/elements/headings/h2/data.json @@ -1,3 +1,3 @@ { - "title": "Lorem ipsum dolor sit amet consectetur" + "title": "H2" } \ No newline at end of file diff --git a/patterns/elements/headings/h2/template.hbs b/patterns/elements/headings/h2/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/headings/h2/template.hbs rename to patterns/elements/headings/h2/template.twig diff --git a/patterns/elements/headings/h3/data.json b/patterns/elements/headings/h3/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/headings/h3/template.hbs b/patterns/elements/headings/h3/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/headings/h3/template.hbs rename to patterns/elements/headings/h3/template.twig diff --git a/patterns/elements/headings/h4/data.json b/patterns/elements/headings/h4/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/headings/h4/template.hbs b/patterns/elements/headings/h4/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/headings/h4/template.hbs rename to patterns/elements/headings/h4/template.twig diff --git a/patterns/elements/headings/h5/data.json b/patterns/elements/headings/h5/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/headings/h5/template.hbs b/patterns/elements/headings/h5/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/headings/h5/template.hbs rename to patterns/elements/headings/h5/template.twig diff --git a/patterns/elements/headings/h6/data.json b/patterns/elements/headings/h6/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/headings/h6/template.hbs b/patterns/elements/headings/h6/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/headings/h6/template.hbs rename to patterns/elements/headings/h6/template.twig diff --git a/patterns/elements/lists/definition-list/template.hbs b/patterns/elements/lists/definition-list/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/lists/definition-list/template.hbs rename to patterns/elements/lists/definition-list/template.twig diff --git a/patterns/elements/lists/ordered-list/template.hbs b/patterns/elements/lists/ordered-list/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/lists/ordered-list/template.hbs rename to patterns/elements/lists/ordered-list/template.twig diff --git a/patterns/elements/lists/unordered-list/template.hbs b/patterns/elements/lists/unordered-list/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/lists/unordered-list/template.hbs rename to patterns/elements/lists/unordered-list/template.twig diff --git a/patterns/elements/text/abbr/data.json b/patterns/elements/text/abbr/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/abbr/template.hbs b/patterns/elements/text/abbr/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/abbr/template.hbs rename to patterns/elements/text/abbr/template.twig diff --git a/patterns/elements/text/bold/data.json b/patterns/elements/text/bold/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/bold/template.hbs b/patterns/elements/text/bold/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/bold/template.hbs rename to patterns/elements/text/bold/template.twig diff --git a/patterns/elements/text/citation/data.json b/patterns/elements/text/citation/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/citation/template.hbs b/patterns/elements/text/citation/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/citation/template.hbs rename to patterns/elements/text/citation/template.twig diff --git a/patterns/elements/text/code-block/data.json b/patterns/elements/text/code-block/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/code-block/template.hbs b/patterns/elements/text/code-block/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/code-block/template.hbs rename to patterns/elements/text/code-block/template.twig diff --git a/patterns/elements/text/code-inline/data.json b/patterns/elements/text/code-inline/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/code-inline/template.hbs b/patterns/elements/text/code-inline/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/code-inline/template.hbs rename to patterns/elements/text/code-inline/template.twig diff --git a/patterns/elements/text/definition/data.json b/patterns/elements/text/definition/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/definition/template.hbs b/patterns/elements/text/definition/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/definition/template.hbs rename to patterns/elements/text/definition/template.twig diff --git a/patterns/elements/text/deleted/data.json b/patterns/elements/text/deleted/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/deleted/template.hbs b/patterns/elements/text/deleted/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/deleted/template.hbs rename to patterns/elements/text/deleted/template.twig diff --git a/patterns/elements/text/emphasis/data.json b/patterns/elements/text/emphasis/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/emphasis/template.hbs b/patterns/elements/text/emphasis/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/emphasis/template.hbs rename to patterns/elements/text/emphasis/template.twig diff --git a/patterns/elements/text/inserted/data.json b/patterns/elements/text/inserted/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/inserted/template.hbs b/patterns/elements/text/inserted/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/inserted/template.hbs rename to patterns/elements/text/inserted/template.twig diff --git a/patterns/elements/text/italic/data.json b/patterns/elements/text/italic/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/italic/template.hbs b/patterns/elements/text/italic/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/italic/template.hbs rename to patterns/elements/text/italic/template.twig diff --git a/patterns/elements/text/keyboard/data.json b/patterns/elements/text/keyboard/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/keyboard/template.hbs b/patterns/elements/text/keyboard/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/keyboard/template.hbs rename to patterns/elements/text/keyboard/template.twig diff --git a/patterns/elements/text/link/data.json b/patterns/elements/text/link/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/link/template.hbs b/patterns/elements/text/link/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/link/template.hbs rename to patterns/elements/text/link/template.twig diff --git a/patterns/elements/text/mark/data.json b/patterns/elements/text/mark/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/mark/template.hbs b/patterns/elements/text/mark/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/mark/template.hbs rename to patterns/elements/text/mark/template.twig diff --git a/patterns/elements/text/paragraph/data.json b/patterns/elements/text/paragraph/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/paragraph/template.hbs b/patterns/elements/text/paragraph/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/paragraph/template.hbs rename to patterns/elements/text/paragraph/template.twig diff --git a/patterns/elements/text/quote-block-with-citation/data.json b/patterns/elements/text/quote-block-with-citation/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/quote-block-with-citation/template.hbs b/patterns/elements/text/quote-block-with-citation/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/quote-block-with-citation/template.hbs rename to patterns/elements/text/quote-block-with-citation/template.twig diff --git a/patterns/elements/text/quote-block/data.json b/patterns/elements/text/quote-block/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/quote-block/template.hbs b/patterns/elements/text/quote-block/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/quote-block/template.hbs rename to patterns/elements/text/quote-block/template.twig diff --git a/patterns/elements/text/quote-inline/data.json b/patterns/elements/text/quote-inline/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/quote-inline/template.hbs b/patterns/elements/text/quote-inline/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/quote-inline/template.hbs rename to patterns/elements/text/quote-inline/template.twig diff --git a/patterns/elements/text/small/data.json b/patterns/elements/text/small/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/small/template.hbs b/patterns/elements/text/small/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/small/template.hbs rename to patterns/elements/text/small/template.twig diff --git a/patterns/elements/text/strikethrough/data.json b/patterns/elements/text/strikethrough/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/strikethrough/template.hbs b/patterns/elements/text/strikethrough/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/strikethrough/template.hbs rename to patterns/elements/text/strikethrough/template.twig diff --git a/patterns/elements/text/strong/data.json b/patterns/elements/text/strong/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/strong/template.hbs b/patterns/elements/text/strong/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/strong/template.hbs rename to patterns/elements/text/strong/template.twig diff --git a/patterns/elements/text/subscript/data.json b/patterns/elements/text/subscript/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/subscript/template.hbs b/patterns/elements/text/subscript/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/subscript/template.hbs rename to patterns/elements/text/subscript/template.twig diff --git a/patterns/elements/text/superscript/data.json b/patterns/elements/text/superscript/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/superscript/template.hbs b/patterns/elements/text/superscript/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/superscript/template.hbs rename to patterns/elements/text/superscript/template.twig diff --git a/patterns/elements/text/time/data.json b/patterns/elements/text/time/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/time/template.hbs b/patterns/elements/text/time/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/time/template.hbs rename to patterns/elements/text/time/template.twig diff --git a/patterns/elements/text/underline/data.json b/patterns/elements/text/underline/data.json old mode 100755 new mode 100644 diff --git a/patterns/elements/text/underline/template.hbs b/patterns/elements/text/underline/template.twig old mode 100755 new mode 100644 similarity index 100% rename from patterns/elements/text/underline/template.hbs rename to patterns/elements/text/underline/template.twig diff --git a/patterns/templates/home/data.json b/patterns/templates/home/data.json deleted file mode 100755 index 1359e46..0000000 --- a/patterns/templates/home/data.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "view": "template", - - "paragraph": { - "copy": "Test paragraph" - }, - - "paragraph:second": { - "copy": "Test paragraph second" - } -} \ No newline at end of file diff --git a/patterns/templates/home/template.hbs b/patterns/templates/home/template.hbs deleted file mode 100755 index dbe6003..0000000 --- a/patterns/templates/home/template.hbs +++ /dev/null @@ -1,3 +0,0 @@ -
{{#inc elements/headings/h1}}
-
{{#inc elements/text/paragraph}}
-
{{#inc elements/text/paragraph data="second"}}
\ No newline at end of file diff --git a/patterns/templates/test/data.json b/patterns/templates/test/data.json new file mode 100644 index 0000000..e69de29 diff --git a/patterns/templates/test/template.twig b/patterns/templates/test/template.twig new file mode 100644 index 0000000..e69de29 diff --git a/views/group.hbs b/views/group.twig old mode 100755 new mode 100644 similarity index 73% rename from views/group.hbs rename to views/group.twig index d6eacb1..98b41e5 --- a/views/group.hbs +++ b/views/group.twig @@ -5,8 +5,8 @@ # - {{#if copy}} -
{{{copy}}}
- {{/if}} - {{{patterns}}} + {% if copy %} +
{{ copy|raw }}
+ {% endif %} + {{ patterns|raw }} \ No newline at end of file diff --git a/views/menu.hbs b/views/menu.hbs deleted file mode 100755 index c5f1231..0000000 --- a/views/menu.hbs +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/views/nav.twig b/views/nav.twig new file mode 100644 index 0000000..bc85a1b --- /dev/null +++ b/views/nav.twig @@ -0,0 +1,36 @@ + diff --git a/views/pattern.hbs b/views/pattern.twig old mode 100755 new mode 100644 similarity index 66% rename from views/pattern.hbs rename to views/pattern.twig index 53bb2e9..1692120 --- a/views/pattern.hbs +++ b/views/pattern.twig @@ -1,12 +1,12 @@ -
+
-
{{title}} {{> {{ id }} }}
+
{{title}} {{ '{% include' }} '{{ id }}' {{ '%}' }}
- # + #
- {{#if copy}} -
{{{copy}}}
- {{/if}} + {% if copy %} +
{{ copy|raw }}
+ {% endif %}
@@ -17,7 +17,7 @@
- Handlebars + Twig
{{ template }}
@@ -28,6 +28,6 @@
{{ data }}
- {{{html}}} + {{ html|raw }}
-
\ No newline at end of file +
diff --git a/views/section.hbs b/views/section.hbs deleted file mode 100755 index c5ecd95..0000000 --- a/views/section.hbs +++ /dev/null @@ -1,12 +0,0 @@ -
-
-
{{title}}
-
- # -
-
- {{#if copy}} -
{{{copy}}}
- {{/if}} - {{{patterns}}} -
\ No newline at end of file diff --git a/views/section.twig b/views/section.twig new file mode 100644 index 0000000..af8618b --- /dev/null +++ b/views/section.twig @@ -0,0 +1,12 @@ +
+
+
{{ title }}
+
+ # +
+
+ {% if copy %} +
{{ copy|raw }}
+ {% endif %} + {{ patterns|raw }} +
\ No newline at end of file diff --git a/views/sidebar.twig b/views/sidebar.twig new file mode 100644 index 0000000..0467b1f --- /dev/null +++ b/views/sidebar.twig @@ -0,0 +1,4 @@ + diff --git a/views/template.hbs b/views/template.twig old mode 100755 new mode 100644 similarity index 62% rename from views/template.hbs rename to views/template.twig index 447fbca..71b170c --- a/views/template.hbs +++ b/views/template.twig @@ -1,5 +1,5 @@ - + @@ -7,17 +7,27 @@ - + - {{! Insert the items that we have requested }} - {{{ primer.items }}} +
+ {% include 'sidebar.twig' %} + +
+ {% block content %} + {# Insert the items that we have requested #} + {{ primer.items|raw }} + {% endblock %} +
+
+ + - \ No newline at end of file +