jmf / twig-inline
Twig extension for inlining files in Twig templates.
1.0.0
2024-06-05 13:32 UTC
Requires
- php: >=8.3
- twig/twig: ^3.0
Requires (Dev)
- phing/phing: ^2.17
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^11.1
- rector/rector: ^1.0
- squizlabs/php_codesniffer: ^3.8
README
Installation & Requirements
Install with Composer:
composer require jmf/twig-inline
Configuration
A base path must be defined in order to locate inlinable files, and prevent inlining of unwanted files.
Usage in Twig templates
inline() function
<style>{{ inline('style.css') }}</style>