bshelling / bamboo
Simple twig templating package for Laravel Applications
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bshelling/bamboo
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']);
}
}