Markaby to HAML migration complete

10 views
Skip to first unread message

Alon Salant

unread,
Jun 8, 2010, 3:28:49 AM6/8/10
to freehu...@googlegroups.com
I've completed the first step in the process of upgrading Rails - I've
replaced the Markaby templating engine with HAML. One of the nice
things about HAML is that it is widely used and well documented. This
makes it a good candidate for an open source project like Freehub. It
is also already compatible with Rails 3 for when we want to upgrade to
that (I'm targeting 2.3.5 for now).

See http://haml-lang.com/ for info on how to use HAML yourself.

Alon

Alon Salant

unread,
Jun 8, 2010, 3:39:31 AM6/8/10
to freehu...@googlegroups.com
Oh yeah, definitely pull from github if you are planning on working on
Freehub b/c this change touched every single view.

Tony Olivo

unread,
Jun 8, 2010, 7:21:28 AM6/8/10
to freehu...@googlegroups.com
That was quick! Nice work Alon, I'll pull it down after work. I was
looking through the Markaby views last night. To be honest, it's a
little hard to follow, since it looked like parts of the page were
coming from all over the place, and I'm just used to static HTML with
inline scripts for stuff like this. I appreciate not having to switch
back and forth between HTML and Ruby in the <% %> tags.

I was also confused about where to find the CSS, it looks like it was
generated, but I can't tell from where yet. I'm thinking of starting a
wiki page of "Where do things live?" to help people unfamiliar with the
project (or maybe just rails in general) navigate their way around.

-Tony

Alon Salant

unread,
Jun 8, 2010, 1:41:28 PM6/8/10
to freehu...@googlegroups.com
Yeah, I just powered through it last night. I didn't want to leave it
half done and wanted to get it out of the way since it would touch so
many files. The rest of the upgrade steps will be less invasive, I
think.

CSS is in public/stylesheets and is not generated.

Wiki page for new developers is a great idea. At the very least keep
notes on what you learn coming up to speed.

> --
> You received this message because you are subscribed to the Google Groups
> "Freehub Users" group.
> To post to this group, send email to freehu...@googlegroups.com.
> To unsubscribe from this group, send email to
> freehub-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/freehub-users?hl=en.
>
>

J.P. Lien

unread,
Jun 8, 2010, 9:02:19 AM6/8/10
to freehu...@googlegroups.com
Tony,

Static content (CSS, javascript, images, any static HTML such as 404
pages) for rails projects is in the public/ subtree.

Learning where things live is a big part of the rails learning curve.

J.P.

Reply all
Reply to author
Forward
0 new messages