Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
"unless" support in Spark
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rob G  
View profile  
 More options Jun 1 2012, 12:28 pm
From: Rob G <robertgreyl...@gmail.com>
Date: Fri, 1 Jun 2012 17:28:18 +0100
Local: Fri, Jun 1 2012 12:28 pm
Subject: "unless" support in Spark

Due to somewhat popular request, as of version 1.7.2, I've added
support for the new "unless" conditional.

If you've used it in Ruby then it'll seem natural, but if not, then simply
consider it as an equivalent of "if not". This can be used as both an
attribute on any node or as the node itself:

<div>
  <var arg="5"/>
  <unless condition="arg==5">
    <p>argis5</p>
  </unless>
  <unless condition="arg==6">
    <p>argisnot6</p>
  </unless>
</div>

<!-- outputs <div><p>argisnot6</p></div> -->

<div>
  <var arg="5"/>
  <p unless="arg==5">argis5</p>
  <p unless="arg==6">argisnot6</p>
</div>

<!-- outputs <div><p>argisnot6</p></div> -->

This feature is supported for all of Spark's current language compilers
(Ruby, Python, C#, JavaScript and VB.NET)

All the best,
Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Louis DeJardin  
View profile  
 More options Jun 1 2012, 1:48 pm
From: Louis DeJardin <louis.dejar...@gmail.com>
Date: Fri, 1 Jun 2012 10:48:22 -0700
Local: Fri, Jun 1 2012 1:48 pm
Subject: RE: "unless" support in Spark

Beautiful!

--
Louis - sent from mobile
------------------------------
From: Rob G
Sent: 6/1/2012 9:28 AM
To: spark-dev@googlegroups.com
Subject: "unless" support in Spark

Due to somewhat popular request, as of version 1.7.2, I've added
support for the new "unless" conditional.

If you've used it in Ruby then it'll seem natural, but if not, then simply
consider it as an equivalent of "if not". This can be used as both an
attribute on any node or as the node itself:

<div>
  <var arg="5"/>
  <unless condition="arg==5">
    <p>argis5</p>
  </unless>

  <unless condition="arg==6">
    <p>argisnot6</p>
  </unless>
</div>

<!-- outputs <div><p>argisnot6</p></div> -->

<div>
  <var arg="5"/>
  <p unless="arg==5">argis5</p>
  <p unless="arg==6">argisnot6</p>
</div>

<!-- outputs <div><p>argisnot6</p></div> -->

This feature is supported for all of Spark's current language compilers
(Ruby, Python, C#, JavaScript and VB.NET)

All the best,
Rob

--
You received this message because you are subscribed to the Google Groups
"Spark View Engine Dev" group.
To post to this group, send email to spark-dev@googlegroups.com.
To unsubscribe from this group, send email to
spark-dev+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/spark-dev?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »