neos-compressor
所属分类:压缩解压
开发工具:PHP
文件大小:0KB
下载次数:0
上传日期:2022-08-23 08:20:20
上 传 者:
sh-1993
说明: 用于Neos的HTML输出的压缩器,
(A compressor for the HTML output of Neos,)
文件列表:
Classes/ (0, 2022-08-23)
Classes/CompressionHelper.php (919, 2022-08-23)
Configuration/ (0, 2022-08-23)
Configuration/Settings.yaml (190, 2022-08-23)
LICENSE (1077, 2022-08-23)
Resources/ (0, 2022-08-23)
Resources/Private/ (0, 2022-08-23)
Resources/Private/Fusion/ (0, 2022-08-23)
Resources/Private/Fusion/Root.fusion (387, 2022-08-23)
composer.json (3116, 2022-08-23)
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
[![Packagist](https://img.shields.io/packagist/v/flownative/neos-compressor.svg)](https://packagist.org/packages/flownative/beach-neos-compressor)
[![Maintenance level: Love](https://img.shields.io/badge/maintenance-%E2%99%A1%E2%99%A1%E2%99%A1-ff69b4.svg)](https://www.flownative.com/en/products/open-source.html)
# Flownative Neos Compressor
This package by default compresses the `head` and `body` of the `Neos.Neos:Page` prototype
using the default compressor of `wyrihaximus/html-compress`.
## Installation
`composer require flownative/neos-compressor`
## Usage
As soon as the package is installed, the `Neos.Neos:Page` prototype is amended with `@process`
instructions on the `head` and `body` elements. This will compress and "regular" output without
any further steps to take.
### Adjust compression
To remove the default compression, simply override:
```
prototype(Neos.Neos:Page) {
head.@process.compression >
body.@process.compression >
}
```
To compress specific parts, use the compression helper like this:
```
something.@process.compression = ${Flownative.Compressor.compress(value)}
```
近期下载者:
相关文件:
收藏者: