liquidpl/blade-no-single-letter-words
Composer 安装命令:
composer require liquidpl/blade-no-single-letter-words
包简介
Adds a tag to Blade which pushes one character words in paragraphs to the next line.
README 文档
README
A common typography practice in countries such as Poland is to push 1-2 character words that are situated at the end of the line to the next one.
This package adds @nosingleletterwords and @endnosingleletterwords to Blade. Adding them to your template alters the text inside them so that is appended after said 1-2 character words, so that they'll be always pushed to the next line if they happen to be at the end of a line.
Supported Laravel versions
This package officially supports the currently supported Laravel version, which at the time of this commit are 5.8 and above. However, it should work on the previous versions too.
Installation
# composer require liquidpl/blade-no-single-letter-words
On Laravel 5.4 and below, you need to add the service provider to your configuration files. In your config/app.php file, in the providers array key:
'providers' => array( // or [ // ... 'LiquidPL\BladeNoSingleLetterWords\BladeNoSingleLetterWordsProvider', );
Usage
@nosingleletterwords <p> Some text that might look a bit bad from a typographical standpoint. <p> @endnosingleletterwords
Results in:
<p> Some text that might look a bit bad from a typographical standpoint. </p>
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-12