Skip to content

mksada/nonbreakingspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to use filter with Nette

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}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages