viliamkopecky / nette-ristretto
Helper using Ristretto livereload in Nette apps.
dev-master
2013-12-03 22:29 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-10-28 03:30:43 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