You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nhaml-users
Hi,
I need to render checked attribute depending on some value.
Currently it takes a lot of code code snippet to write:
- if (IsChecked)
%input { type="checkbox" value=#{LongCalculatedValue()}
checked="checked"}
-else
%input { type="checkbox" value=#{LongCalculatedValue()} }
How can I CONDITIONALLY render the attribute here?