List Info

Thread: Options to control haml(1) processing?




Options to control haml(1) processing?
country flaguser name
United States
2007-11-06 12:19:28
When I run the following code:

  ...
  - if flash[:notice]
    .notice= flash[:notice]
  ...

through haml(1), I get this nastygram:

  NameError on line 26: undefined local variable or method
`flash' for
#<Object:0x6f9844>
    Use --trace to see traceback

I suspect that this simply reflects the fact that that I'm
not running
Haml under Rails, so
no "flash" array has been defined.  This is
understandable, but a bit
annoying, given that
I'm just using haml(1) to check my HAML syntax, etc.

I'd like to see one or more options that would allow me to
control
haml(1) processing.  I
don't know much about the innards of Haml, so I won't try to
be
specific, but limiting the
processing to a syntax check might be one reasonable
option.

-r


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


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )