Download the PHP package schranz-templating/symfony-latte-integration without Composer
On this page you can find all versions of the php package schranz-templating/symfony-latte-integration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download schranz-templating/symfony-latte-integration
More information about schranz-templating/symfony-latte-integration
Files in schranz-templating/symfony-latte-integration
Package symfony-latte-integration
Short Description A integration of template renderer into symfony via latte template engine.
License MIT
Informations about the package symfony-latte-integration
Schranz Template Renderer Integration for Latte
Integrate the templating Latte Adapter into the Symfony Framework.
Part of the Schranz Templating Project.
Installation
Install this package via Composer:
Register the Bundle class in your config/bundles.php
or Kernel file:
Configuration
The Latte Integration has the following configuration available:
None of the configuration is required.
default_path
type: string
default: '%kernel.project_dir%/templates'
The path to the directory where Symfony will look for the application Latte templates by default.
cache
type: string
default: '%kernel.cache_dir%/latte'
Before using the Latte templates to render some contents, they are compiled into regular PHP code. Compilation is a costly process, so the result is cached in the directory defined by this configuration option.
Extensions
To extend Latte functionality you can create a new service extending from Latte\Extension
which when autoconfigure
is enabled automatically be tagged with latte.extension
and added
as a Latte Extension. If not you need to tag the service yourself:
Read more about Latte Extensions in the Latte documentation.
All versions of symfony-latte-integration with dependencies
schranz-templating/latte-adapter Version ^0.1
symfony/config Version ^4.4 || ^5.4 || ^6.0
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.0
symfony/http-kernel Version ^4.4 || ^5.4 || ^6.0
latte/latte Version ^2.0|^3.0