surgems/inliner

Statamic Addon that turns external assets into inline HTML.

Installs: 91

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/surgems/inliner

1.0.0 2022-07-11 16:03 UTC

This package is auto-updated.

Last update: 2025-10-12 03:08:35 UTC


README

Inliner is a Statamic addon that turns external assets into inline HTML.

Features

This addon does:

  • Inlines external JS/CSS files
  • Minifies these files

How to Install

You can use this addon by running the following command from your project root:

composer require surgems/inliner

How to Use

To inline your external assets, just use the inliner tag allong with the path to your asset file:

{{ inliner src="css/app.css" }}
{{ inliner src="js/app.js" }}

To Minify these assets, just add the minify tag (the default is false):

{{ inliner src="css/app.css" minify="true" }}