« Return to Thread: Adjusting Spark syntax

Adjusting Spark syntax

by Louis DeJardin :: Rate this Message:

Reply to Author | View in Thread


Hello,

As Spark is being used in a real-world application a problem that was
spoken about has surfaced. The expression output syntaxes <%=expr%> $
{expr} and $expr; are all treated the same, but the third one collides
pretty badly with any prototype/jquery javascript that's not in a
static js.

So I'm thinking of taking out the $expr; syntax. Would anyone miss
that?

I've also had an interesting recommendation for a variation on the
conditional syntax.

<p if="x">foo</p>

<test if="x">
  <p>foo</p>
</test>

<test if="x">
  <p>foo</p>
  <else/>
  <p>bar</p>
</test>

<test if="x">
  <p>foo</p>
  <else if="y"/>
  <p>bar</p>
  <else/>
  <p>foo</p>
</test>

Thoughts?

- Lou

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To post to this group, send email to castle-project-devel@...
To unsubscribe from this group, send email to castle-project-devel-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Adjusting Spark syntax

LightInTheBox - Buy quality products at wholesale price!