viliamkopecky/nette-ristretto

Helper using Ristretto livereload in Nette apps.

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

README

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:

extensions:
	ristretto: Ristretto\Extension

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