jmf/twig-inline

Twig extension for inlining files in Twig templates.

Maintainers

Package info

github.com/jmfeurprier/twig-inline

pkg:composer/jmf/twig-inline

Statistics

Installs: 190

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2024-06-05 13:32 UTC

This package is auto-updated.

Last update: 2026-03-05 17:20:43 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>