On Thu, Jul 29, 2010 at 10:29 AM, Mislav Marohnić <[email protected] > wrote:
> On Tue, Jul 27, 2010 at 09:49, Jeroen van Dijk <[email protected] > > wrote: > >> This works best for normal stylesheets and >> javascript files where it is just a reload of the specific asset file. >> For Sass this is different though. The whole page has to reload to >> update the stylesheets. > > > Not true—I'm using LiveReload with Sass without refreshes. I wrote a > re-implementation of livereload gem as a simple script that also handles > Sass for Rails apps: http://gist.github.com/484894 > Thanks for the update Mislav and thanks for your work. I also experimented with a variant of livereload. One that will actually plug into your Rails app so you don't have to think about activating the browser plugin (you don't even need to install anything in your browser). I think instead of updating stylesheets link you do, the reordering of the Rack middleware is a cleaner solution (not sure if it is faster or slower). It means you only have to make sure that the browser reloads the css and that is don with the timestamp. I'll post a link here when my variant of livereload is any good for public use. Jeroen > Only works on OS X Leopard and above because it uses RSpactor (which also > makes it possible to use LiveReload in a big project), but I'm working on a > Linux version, too. > > It's not as fast as static CSS because of the overhead of generating files > from Sass, but it works flawlessly. > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
