Minggu, 19 Desember 2010
Verifying Generated HTML With HAML, Cucumber, Capybara and RSpec
Several of the reports that the app that Joey and I are working on will be generated via HAML to be displayed in the app, for the users. The generated content will end up being HTML, but starts it's life as HAML markup - our preferred markup for Rails apps. It's easy to generate HAML into HTML, in code: haml_file = "path/to/my/filename.haml"haml_data = File.read(haml_file)result = Haml::
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar