Is there something similar to this in the rhtml templates? http://smarty.php.net/manual/en/language.function.strip.php The reason I ask is because I render some templates in my RJS files. The less white space there is, the smaller the size of javascript the client has to download. Thanks for your help. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Ben Johnson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> writes:> Is there something similar to this in the rhtml templates? > > http://smarty.php.net/manual/en/language.function.strip.php > > The reason I ask is because I render some templates in my RJS files. The > less white space there is, the smaller the size of javascript the client > has to download. >emacs-rails (emacs mode for rails) automatically does that for every file you open and save in it. This mode only works for GNU Emacs though. HTH. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "War is Peace! Freedom is Slavery! Ignorance is Strength!" | -- Orwell, 1984, 1948 `---- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 24 Aug 2006, at 19:45, Ben Johnson wrote:> > Is there something similar to this in the rhtml templates? > > http://smarty.php.net/manual/en/language.function.strip.php > > The reason I ask is because I render some templates in my RJS > files. The > less white space there is, the smaller the size of javascript the > client > has to download.Why not let your webserver handle this with mod_deflate? Whitespace compresses very well and you don''t have to sacrifice readability of your html. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---