ksadam/latte-nonbreaking-space

Adding non-breaking space to string where it is necessary

Installs: 101

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ksadam/latte-nonbreaking-space

v1.0.2 2019-05-28 14:14 UTC

This package is auto-updated.

Last update: 2025-10-29 02:50:19 UTC


README

Inject filter into presenter:

use Ksadam\Latte\NonBreakingSpace;
...
    /** @var NonBreakingSpace @inject */
    public $nonBreakingSpace;
...
    protected function beforeRender()
    {
        $this->template->addFilter('nonBreakingSpace', $this->nonBreakingSpace);
    }
...

Use filter in latte:

{$variable|nonBreakingSpace}