adt/nette-macro-webp

This package is abandoned and no longer maintained. No replacement package was suggested.

Installs: 2 499

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 0

Open Issues: 0

pkg:composer/adt/nette-macro-webp

v1.0 2020-01-21 14:54 UTC

This package is auto-updated.

Last update: 2022-05-09 15:29:56 UTC


README

Installation

$ composer require adt/nette-macro-webp:@dev

To your config.neon add:

extensions:
	webpSrcMacroExtension: ADT\WebpSrcMacroExtension

Usage

Latte
<img n:webpSrc="myImage.jpg">

Output

If browser send header Accept: image/webp:

<img src="myImage.webp">

If do not:

<img src="myImage.jpg">