luwes / craft3-inline
Inline the contents of a file in a twig template.
Installs: 5 561
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0-beta.1
This package is auto-updated.
Last update: 2024-10-24 07:12:05 UTC
README
Inline the contents of a file in a twig template.
Installation
To install Inline, follow these steps:
- Install with Composer via
composer require luwes/craft3-inline
- Install plugin in the Craft Control Panel under Settings > Plugins
Inline works on Craft 3.x.
Inline Overview
Internally uses the PHP function file_get_contents
.
Using Inline
{{ inline(assetsUrl ~ '/images/logo.svg') | raw }}
Inline Roadmap
Some things to do, and ideas for potential features:
- Release it
Brought to you by Wesley Luyten