mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-18 05:32:23 -05:00
Add Twig
This commit is contained in:
parent
3851249096
commit
b8f7398632
@ -1,7 +1,9 @@
|
||||
{
|
||||
"require": {
|
||||
"silex/silex": "~1.1",
|
||||
"atoum/atoum" : "dev-master"
|
||||
"atoum/atoum" : "dev-master",
|
||||
"twig/twig": ">=1.8,<2.0-dev",
|
||||
"symfony/twig-bridge": "~2.3"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": { "Poche": "src/" }
|
||||
|
@ -1 +1,5 @@
|
||||
<?php
|
||||
|
||||
$app->register(new Silex\Provider\TwigServiceProvider(), array(
|
||||
'twig.path' => __DIR__.'/views',
|
||||
));
|
||||
|
@ -1 +1,5 @@
|
||||
<?php
|
||||
|
||||
$app->get('/', function () use ($app) {
|
||||
return $app['twig']->render('index.twig');
|
||||
});
|
||||
|
1
src/views/index.twig
Normal file
1
src/views/index.twig
Normal file
@ -0,0 +1 @@
|
||||
Poche v2
|
Loading…
Reference in New Issue
Block a user