viliamkopecky/nette-ristretto

在Nette应用程序中使用Ristretto livereload的助手。

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

This package is auto-updated.

Last update: 2024-08-28 03:09:46 UTC


README

NetteRistretto添加连接

首先熟悉Grunt.jsRistrettoExample

// 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