This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Helper using Ristretto livereload in Nette apps.

dev-master 2013-12-03 22:29 UTC

This package is auto-updated.

Last update: 2021-09-27 20:30:57 UTC


Adds connection from Nette to Ristretto

Firstly get familiar with Grunt.js and RistrettoExample

// Application startup

Ristretto::register($port = 2013, $container->application);

// or even better

Ristretto::register($filepath = __DIR__ . '/../ristretto.json', $container->application);
# or in config.neon simply as this:

	ristretto: Ristretto\Extension

# it automatically looks for config file `%appDir%/../ristretto.json`
# and loads Ristretto's port from there