Okay, once again, the idea here is to make HTML easily expressible for beginnies during a tutorial. If we can show that Ruby can be used to assemble a blog template pretty nicely, then someone might go, “Okay, I’m doing this!”
div.entry do
h2.entryTitle 'Son of WebPage'
div.entrySection %{by "why(Visit why's homepage)":http://whytheluckystiff.net/}
div.entryContent '_Okay_, once again, the idea here is ...'
end
Main changes:
Give elements a class (or classes) by attaching a method: div.button.red translates to
.
Give elements an ID by adding a bang to that method: div.page! translates to
.
Got rid of link_to, using normal a.
Divs can now take a string containing Textile.
I wasn’t gonna do the bang but it looks cool. The method attachment trick is done in CssProxy.