Hello all, I'm examing the hobo dryml src,
for the implementation of if/else tag,

<def attrs='test' tag='if'><%=
  test = all_attributes.fetch(:test, this)
  res = (cond = !test.blank?) ? parameters.default : ""
  Hobo::Dryml.last_if = cond
  res
%></def>

<def tag='else'><%= parameters.default unless Hobo::Dryml.last_if %></def>

It says else just simply examine the last_if value,
it's just too simple and cannot handle nest case.
so as I understand, it can not handle situation like this:
If
  If
Else

or situation like this?
If
  If
  Else
Else

right?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to