geniv / nette-browser-sync
Browser sync component for Nette Framework
Installs: 1 568
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- geniv/nette-general-form: >=1.0
- nette/nette: >=2.4
This package is auto-updated.
Last update: 2024-11-06 11:19:16 UTC
README
Installation
$ composer require geniv/nette-browser-sync
or
"geniv/nette-browser-sync": "^1.0"
require:
"php": ">=7.0", "nette/nette": ">=2.4", "geniv/nette-general-form": ">=1.0"
Include in application
neon configure:
services: - BrowserSync #or - BrowserSync(other url, other check url)
base presenter:
protected function createComponentBrowserSync(IBrowserSync $browserSync): IBrowserSync { //$browserSync->setTemplatePath(__DIR__ . '/templates/browserSync.latte'); //$browserSync->setCheckByUrl(false); return $browserSync; }
usage:
{control browserSync}