Helper using Ristretto livereload in Nette apps.

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

This package is auto-updated.

Last update: 2021-04-27 19:43:42 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