Ruby on Rails Saturday, October 29, 2011



On Sat, Oct 29, 2011 at 6:37 AM, Frederick Cheung <frederick.cheung@gmail.com> wrote:


On Oct 29, 11:00 am, Jedrin <jrubia...@gmail.com> wrote:
>  I have been asked a couple of times at job interviews if I am
> familiar with HAML or Liquid so I was wondering if maybe I should
> start using them and perhaps it would make the views easier to work
> with.
>
> If I install HAML on a machine where my app is that has alot of
> regular HTML in the .erb views already, will it still work with those
> or do I need to convert everything to HAML ? Can I have some views in
> regular HTML and some in HAML, things mixed like that ?

There is also this online html to haml converter: http://html2haml.heroku.com/

Depending on how complex your markup you may need to edit, but I found this to be pretty good for wholesale converting a number of pages without the drudgery.
 
>

You can mix and match pretty much as you want (e.g.  haml view
rendering a .erb partial or vice-versa)

Fred

>  Any gotchas for using HAML/Liquid with AJAX ? I understand Rails 3
> encourages unobtrusive Javascript, but installed the older gem for
> doing AJAX for the time being as sometimes seem to not get very
> excited about writing Javascript.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment