sayang:~/langsungbuang/haml_helper arie$ cat app/views/demo/index.haml
= Time.now

= ariekeren_attribute("a Field from DB".capitalize)


sayang:~/langsungbuang/haml_helper arie$ cat app/helpers/demo_helper.rb
module DemoHelper

   def ariekeren_attribute(str)
     # %Q~<span id="ariekeren_attribute">#{str}</span>~
     %span{:id => "ariekeren_attribute"} str
   end

end
sayang:~/langsungbuang/haml_helper arie$



is it possible to convert simple html to haml ? in Haml TODO?

Thanks.

-- 
Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren / YM! = riyari3
http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby
http://groups-beta.google.com/group/id-jp #  mari praktik bercakap jepang!
http://groups-beta.google.com/group/id-fr #  mari praktik bercakap prancis!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to