Created
April 19, 2020 18:21
-
-
Save elminson/2effd5f1ccfdb9416443eddd5f0770f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__.'/vendor/autoload.php'; | |
$loader = new \Twig\Loader\ArrayLoader([ | |
'index' => 'Hello {{ name }}!', | |
]); | |
$twig = new \Twig\Environment($loader); | |
echo $twig->render('index', ['name' => 'Elminson']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment