bshelling / bamboo
Simple twig templating package for Laravel Applications
v0.3.3
2023-10-18 17:32 UTC
Requires
- php: >=8.2
- twig/twig: ^3.7.1
README
Simple twig templating package for php projects
Example
// Create templates directory at project root
#/ mkdir templates
// Create twig file in templates directory and add {{title}} template tag
#/ touch templates/index.twig
//Lavarel
use Bshelling\Bamboo\Stem\View;
class HomeController extends Controller {
public function index() {
return View::render('index.twig',['title' => 'Bamboo Title']);
}
}