13 Mar '12, 4am

ภาษา haml

Providing a fresh selection of: Download Editor Support Development #haml.tutorial Before we start this tutorial, I want to make one thing clear. After you look at this, go and convert one of your ERB files to Haml. Just try it. Just take the file and start hitting delete. Do it. You don’t have to keep the file if you don’t like it. But after you’re done with this tutorial, just try one file. Haml feels odd for the first 20 minutes, but then after that you will be faster . Getting Started First, get Haml and install the plugin (this tutorial assumes you’re using Rails… it should apply to other frameworks and standalone Haml just as well, though). Haml is a drop-in replacement for ERB. That means any file in your app/views folder can be switched over to Haml by simply changing the extension of the file. app/views/account/login.html.erb → app/views/account/login.html.haml No...

Full article: http://haml-lang.com/tutorial.html


Haml and Rails

rubyflow.com 09 Mar '12, 1am

with some helpful suggestions from Brook Riggio's blog post on Haml by Default in a New Rails 3.2 App . The RailsApps appl...