Is this documented somewhere?  I poked around the docs a bit (which are 
hideous, by the way) and couldn't find it mentioned.  In fact, other than our 
examples, I found only a single mention anywhere that <? ?> was how you 
actually GET Rivet code into a webpage.

In using the source (Luke), it looks as though the <?= ?> construct is meant to 
be used as:

<?= $some_variable ?>

and that's about it.  If the parser sees = as the first character of the 
string, it append 'puts -nonewline' and then the rest of the string.  So, it 
looks like the = is only good for a single variable or value there since no 
effort is made to output or close a quote.  In other words:

<?= $foo $bar ?>

is going to blow up without doing:

<?= "$foo $bar" ?>

We either need to decide to upgrade this construct to quote the value, or we 
really need to document this behavior.  Actually, we need to document the 
behavior either way, but I think the single value thing could be better.  
Although it will make the code a little more complicated.  The current code is 
quite small and simple, so there's a vote for that.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to