similar to: Camping 2.1 - ERB, Haml, 1.9, bug fixes, new website!

Displaying 20 results from an estimated 1000 matches similar to: "Camping 2.1 - ERB, Haml, 1.9, bug fixes, new website!"

2011 Mar 02
3
haml to erb - does it work with new html5 tags?
Hi, I wanted to covert all my erb over to haml, but I use HTML5 tags like nav, section, article, etc. Any idea if this is supported by haml? Checked out their site, nothing mentioned there or did I miss something. Sorry noob here. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2010 Mar 30
0
using haml in internationalisation with haml views
I''m trying to use haml in my locale files but cant get it to parse. en.yml --------- page: content: " %p some paragraph %p another paragraph " view.html.haml ------------------- (works) =Haml::Engine.new(t(''page.content)).render -------------------(does not) =t(''page.content) is the first example the only way to do this? or am I going about
2011 Oct 29
2
comments on HAML ?
I have been asked a couple of times at job interviews if I am familiar with HAML or Liquid so I was wondering if maybe I should start using them and perhaps it would make the views easier to work with. If I install HAML on a machine where my app is that has alot of regular HTML in the .erb views already, will it still work with those or do I need to convert everything to HAML ? Can I have some
2008 Jul 03
0
Testing HAML in helper rspec
Thought I''d post this under its own heading so others can find it. Thanks to David for the pointers to solve this. Here is the incantation needed to use HAML 2.0 under RSpec 1.1.5 (Needs the .5 for a fix) # application_helper_spec.rb under spec/helpers ... before :each do helper.extend Haml helper.extend Haml::Helpers helper.send :init_haml_helpers end it
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
I upgraded a small project that I had created on 3.1.3 to 3.2.0.rc2. Running rspec on it brings about a large amount of these messages: DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:haml] instead. (called from block (2 levels) in <top (required)> at
2008 Sep 25
0
Rspec, HAML with view testing
Hi all, Has anyone experienced the following problem testing rspec against haml views Attempting to run a view spec (partial) app/view/users/_foo.html.haml it "should render it" do render :partial => "users/foo", :locals => template_locals end The following error is returned: 1) ActionView::MissingTemplate in ''shared/_jar_layout should render
2008 Sep 24
0
Rspec, HAML, view testing
Hi all, Has anybody experience the following problem running testing rspec against haml views Attempting to run a view spec app/view/users/_foo.html.haml it "should render it" do render :partial => "users/foo", :locals => template_locals end 1) ActionView::MissingTemplate in ''shared/_jar_layout should render it'' Missing templatet
2008 Aug 25
3
haml says yes, rails says no
I''m using the haml gem and it''s great, been using it for a while and I love it. I''ve got a problem trying to display the flash messages, if I do the following: - if flash[:notice] #flashNotice =flash[:notice] - else if flash[:error] #flashError =flash[:error] - end I get You don''t need to use "- end"
2010 Sep 07
2
Help on formatting some HAML
I wondered if anyone could help me with turning the following in ERB into HAML. I''m VERY new with HAML: ---- <div class="block-element span-7 colborder"> <span class="rightside blue-hue no_decor"><%= link_to "New Order", new_order_path, :remote => true %></span> <h3>Today''s Activity</h3> <hr>
2009 Apr 14
6
About haml and ruby on rail
hi all, I am converting my view into HAML format i have done it with "Html2Haml" command, then I removed all the "- end" from haml code and my indentation is also correct,but now it shows following errors I have kept code of show.html.erb and show.html.haml in attachment. please help me I am not getting what exactly the error is? compile error
2008 Feb 15
2
HAML question - conditional multiple classes on a div
I am looking into HAML and am trying to convert one of my ERB templates to see what I think of it. Everything was going pretty well until I got to the following snippet: <div class="<%= t.done ? "task done": "task" %>"> <p class="title"><%= h(t.description)%></p> </div> How would you do this in HAML? (I know how to
2008 Feb 18
0
HAML: strip white space from output?
Hi all Is there an option for HAML that strips all unnecessary white space, line breaks etc. from the output to save some bandwidth? For SASS I found such configuration, but not for HAML... Thanks for info. Josh -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2008 Apr 07
0
Haml and View tests
Does Rspec work nicely with Haml for controller integrated view tests? I am getting the following error: =================== ActionView::TemplateError in ''Admin::ListingsController index should get a 200 OK'' undefined method `photo'' for true:TrueClass On line #2 of admin/listings/_listing.html.haml 1: %tr 2: %td.photo= image_tag(listing.photo.url(:thumb),
2008 Jan 19
5
HAML makes me love and hate Python
I''m just a rails newbie, but I thought I would point out a small observation. About a year ago, I was having real trouble making the decision about whether I should learn Ruby or Python. I finally settled on Ruby, one of the reasons being that I didn''t want my language to tell me how whitespace should work. (Although the main reason was how object oriented Ruby is) Although
2010 Dec 21
5
Rails, Ruby, haml, metaprogramming problem
In HAML I have hundreds of lines like the following: - xyz = someFuncThatReturnsString(''xyz'') and elsewhere %div{''id'' => xyz} The above lines work fine. - - - Attempting to keep things DRY (Don''t repeat yourself) I want to do something like - eval(otherFuncThatReturnsString(''xyz'')) where
2008 Jun 15
2
Create haml files with rspec_controller command?
It is a nuisance to have to rename all of your files from .erb to .haml. Is there a quick way around this? -- Posted via http://www.ruby-forum.com/.
2007 May 12
0
HAML?
Is anyone developing with HAML templates in Merb? I had to do a few hacks but got it generally working (Merb trunk). I did have to do odd things like print @_layout_content straight out instead of calling catch_content(:layout). And, templates seem to be cached even if I set :cache_templates to false in merb.yml. I hope to be at the MerbHack night at RailsConf and would love to hack on this part
2009 Aug 27
0
HAML/SASS Auto Updater for $2
The recession has hit my family hard, so I''ve decided to sell an application that I use quite often when designing websites. Screenshot: http://img195.imageshack.us/img195/5440/screenshotisl.png With this application, you may add haml/sass files and when they are changed, they automatically transform into html/css. This is great for making templates or creating webpages outside of
2008 Feb 15
1
Rad Rails/Aptana plugin for haml - site down anyone know if it hosted elsewhere
I have been using the Haml plugin for RadRails, it works well, but after rebuilding my laptop from windows to fedora, I re-installed Aptana (after some sweat and toil) but the site http://blog.lucky-dip.net seems to have vanished. Wonder if anyone knows of an alternative? Thanks tonypm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2009 Sep 27
4
Haml & Sass
I would like to use Haml for pages (and possibly templates) and Sass for CSS. But I am a webgen newbie and can''t figure out the configuration. Is such a configuration possible? Could someone help me set it up?