geniv/nette-browser-sync

Browser sync component for Nette Framework

v1.0.5 2019-01-05 21:46 UTC

This package is auto-updated.

Last update: 2020-09-06 02:18:51 UTC


README

via: https://browsersync.io/

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}