Browse
class
The full source code of LiveReload 2 is available on GitHub: LiveReload2 (Mac on master branch, Windows on node branch), livereload-plugins, livereload-js, livereload-extensions. Because curiosity is the most basic and important quality of good developers. The script method works with the LiveReload app as well as Sublime Text 2 (or any other supported editor). For the sake of completeness I also want to mention that it can be combined with the. Older versions of Python LiveReload used a Guardfile to describe optional additional rules for files to watch and build commands to run on changes. This conflicted with other tools that used the same file for their configuration and is no longer supported since Python LiveReload version 2.0.0. American Racing Baja Wheel Part number: AR1725173B Wheel size: 15x10 Offset: -43 Bolt Patterns: 5x5 Backspacing: 3.81 Color: Satin Black Hub bore.
LiveReload plugin for SublimeText
Installs
- Total573K
- Win401K
- Mac106K
- Linux66K
Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 116 | 188 | 210 | 235 | 245 | 266 | 182 | 192 | 211 | 249 | 303 | 412 | 204 | 125 | 118 | 159 | 161 | 164 | 196 | 177 | 138 | 145 | 171 | 170 | 179 | 181 | 172 | 144 | 134 | 173 | 168 | 194 | 168 | 172 | 157 | 152 | 146 | 174 | 193 | 181 | 147 | 140 | 129 | 184 | 189 | 156 |
Mac | 11 | 18 | 26 | 29 | 29 | 26 | 12 | 17 | 21 | 28 | 27 | 33 | 24 | 17 | 14 | 21 | 18 | 16 | 32 | 29 | 7 | 23 | 23 | 17 | 19 | 10 | 17 | 23 | 17 | 20 | 20 | 25 | 30 | 23 | 23 | 18 | 22 | 32 | 28 | 27 | 36 | 19 | 17 | 28 | 29 | 24 |
Linux | 15 | 24 | 22 | 19 | 20 | 26 | 14 | 22 | 29 | 24 | 31 | 36 | 21 | 17 | 23 | 17 | 26 | 20 | 26 | 32 | 19 | 22 | 34 | 27 | 23 | 21 | 21 | 15 | 18 | 11 | 23 | 20 | 20 | 25 | 17 | 21 | 19 | 22 | 27 | 25 | 19 | 19 | 15 | 24 | 21 | 20 |
Readme
- Source
- raw.githubusercontent.com
A web browser page reloading plugin for the Sublime Text 3 editor.
Installing
With Package Control:
- Run “Package Control: Install Package” command, find and install
LiveReload
plugin. - Restart ST editor (if required)
Manual install, Linux users
Manual install, OSX users
Enable desired plug-ins via Command Palette (Ctrl+Shift+P) add livereload.js to you html document.
You can also use one of the extensions listed here http://livereload.com/extensions/
Available plug-ins:
- Compass Preprocessor, compiles .scss, .sass and refreshes page when file is compiled
- Less Preprocessor, compiles .less and refreshes page when file is compiled
- Sass Preprocessor, compiles .scss, .sass with the latest installed sass version and refreshes page when file is compiled
- CoffeeScript Preprocessor, compiles .coffee and refreshes page when file is compiled
- Simple Reload, refresh page when file is saved
- Simple Reload with delay(400ms), wait 400ms then refresh page, when file is saved
Examples
- Simple Reload from http GET request, reloads page on visit to http://localhost:35729/callback/simplereloadplugincallback/on_post_compile
- Send content on change, sends file content to browser console
Sass Preprocessor usage
First, install latest version of sass“bashsudo gem install sass
The original plugin was written by Janez Troha
This is a brand new LiveReload in version 2.0.0.
Installation¶
Python LiveReload is designed for web developers who know Python.
Install Python LiveReload with pip:
If you don’t have pip installed, try easy_install:
Command Line Interface¶
Python LiveReload provides a command line utility,
livereload
, for starting a server in a directory.By default, it will listen to port 35729, the common port for LiveReload browser extensions.
Older versions of Python LiveReload used a
Guardfile
to describe optional additional rules for files to watch and build commands to run on changes. This conflicted with other tools that used the same file for their configuration and is no longer supported since Python LiveReload version 2.0.0. Instead of a Guardfile
you can now write a Python script using very similar syntax and run it instead of the command line application.Script example: Sphinx¶
Here’s a simple example script that rebuilds Sphinx documentation:
Run it, then open http://localhost:5500/ and you can see the documentation changes in real time.
Developer Guide¶
The new livereload server is designed for developers. It can power awsgi application now:
The
Server
class accepts parameters:- app: a wsgi application
- watcher: a watcher instance, you don’t have to create one
server.watch¶
server.watch
can watch a filepath, a directory and a glob pattern:You can also use other library (for example: formic) for more powerfulfile adding:
You can delay a certain seconds to send the reload signal:
server.serve¶
Setup a server with
server.serve
method. It can create a static serverand a livereload server:shell¶
The powerful
shell
function will help you to execute shell commands. Youcan use it with server.watch
:Frameworks Integration¶
Livereload can work seamlessly with your favorite framework.
Django¶
Photostage 4 1 0 – easy slideshow maker downloads. For Django there is a management command included.
To use simply
- add
'livereload'
to yourINSTALLED_APPS
and - then run
./manage.pylivereload
.
For available options like host and ports please refer to
./manage.pylivereload-h
.To automagically serve static files like the native
runserver
command you have to use dj-static. (follow the simple instructions there).Flask¶
Wrap Flask with livereload is much simpler:
Bottle¶
Wrap the
Bottle
app with livereload server:API¶
livereload.
Server
(app=None, watcher=None)[source]¶Livereload server interface.
Initialize a server and watch file changes:
Parameters: |
|
---|
serve
(port=5500, liveport=None, host=None, root=None, debug=None, open_url=False, restart_delay=2, open_url_delay=None, live_css=True)[source]¶Start serve the server with the given port.
Parameters: |
|
---|
watch
(filepath, func=None, delay=None, ignore=None)[source]¶Add the given filepath for watcher list.
Once you have intialized a server, watch file changes beforeserve the server:
Parameters: |
|
---|
livereload.
shell
(cmd, output=None, mode='w', cwd=None, shell=False)[source]¶Execute a shell command.
You can add a shell command:
Parameters: |
|
---|
Changelog¶
Livereload 2 3 81 Equals
The full list of changes between each Python LiveReload release.
- Changelog
Contact¶
Livereload 2 3 81 Epizoda
Have any trouble? Want to know more?
Livereload 2 3 81 Resz
- Follow me on GitHub for the latest updates.
- Follow me on Twitter (most tweets are in Chinese).
- Send Email to me.