Search by

jmf / twig-inline

jmfeurprier

Twig extension for inlining files in Twig templates.

1.0.1 2026-05-31 00:37 UTC

This package is auto-updated.

Last update: 2026-08-31 00:30:58 UTC


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>