Showing posts with label XHTML. Show all posts
Showing posts with label XHTML. Show all posts

Wednesday, August 05, 2009

grok-ing POSH


..class names in XHTML are for semantics, not presentation. Yes, provide presentation with CSS calling out the class name, but the main purpose is for semantics.

http://www.w3.org/QA/Tips/goodclassnames

http://www.w3.org/2001/tag/doc/contentPresentation-26.html

Sunday, March 30, 2008

Markaby

Really digging Markaby and the potential it has to more easily create html in Ruby. Try to work in some Markaby along with your Erb in Rails. (Markaby is included in Camping microframework I believe... the code is very clean). Currently, I believe the latest version is 0.5 as of this writing. You can install it with a simple:

bash-3.2$ sudo gem install markaby


Read all about it:

http://markaby.rubyforge.org/

http://redhanded.hobix.com/inspect/markabyForRails.html

http://redhanded.hobix.com/inspect/markaby03.html

html do
head do
title action_name
stylesheet_link_tag 'scaffold'
end

body do
p flash[:notice], :style => "color: green"
self << @content_for_layout end end