jmf/twig-inline

Twig extension for inlining files in Twig templates.

1.0.0 2024-06-05 13:32 UTC

This package is auto-updated.

Last update: 2024-11-05 14:25:34 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>