It's used in a couple of the examples:

doc/examples/hello1.rvt:<?= "Hello World" ?>
doc/examples/vars.rvt:          <td><?= $title ?></td>
doc/examples/vars.rvt:          <td><?= $boss ?></td>
doc/examples/vars.rvt:          <td><?= $salary ?></td>
doc/examples/vars.rvt:          <td><?= $skills ?></td>

Also doc/xml/examples.xml describes the "shorthand" in prose.


On Thu, Sep 13, 2012 at 10:36 AM, Damon Courtney <da...@tclhome.com> wrote:

> 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: rivet-dev-unsubscr...@tcl.apache.org
> For additional commands, e-mail: rivet-dev-h...@tcl.apache.org
>
>

Reply via email to