Skip to content

Inline the contents of a file in a twig template.

License

Notifications You must be signed in to change notification settings

zizther/craft3-inline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inline plugin for Craft CMS 3.x

Inline the contents of a file in a twig template.

Installation

To install Inline, follow these steps:

  1. Install with Composer via composer require luwes/craft3-inline
  2. 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

About

Inline the contents of a file in a twig template.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages