On Wed, Sep 16, 2009 at 10:01 AM, Markus <[email protected]> wrote:
>
> Just updated and now the following code is broken:
>
> [if equal {member} Markus]$$actions[if]
>


Ok, here's a quick fix. We'll have to go back to the prior snippets
behavior. Go to markups.php line 19 and change it to:

Markup('vars', 'snippets',
'/(\$\$|\&\#36\;\&\#36\;)([_a-zA-Z0-9]+)(\:[-_a-zA-Z0-9\.]+)?/e',
'BOLTMsnippets("$2", "$3")'); // $$snippets

The only difference is the M in BOLTMsnippets.

The reason for this is the conditionals in the snippet are no longer
processed before being inserted into the page. And conditionals don't
nest well in BoltWire. So if there are conditionals inside of the
snippet, and you wrap the snippet in a conditional you got
conditionals in conditionals. And it chokes.

The reason it was changed was to allow you to insert markup into a
snippet that would be processed at the right time (particularly in
forms). And avoid possible double processing of snippet contents. Two
good reason, but definitely less urgent than this one. There are
several possible solutions.

1. Go back to original function and forget the idea of putting pieces
of forms in snippets, or use a custom markup rule for those who want
to the newer behavior. Easy enough.
2. Have all the markup in snippets processed except for forms--as that
seems to be the only problem area... Not hard, but seems kind of
kludgy.
3. Fix conditionals so they become properly nestable. I just thought
of a possible way to do this, but it will take a good bit of work to
try it out. So it will have to wait till another day.

I lean towards one for now and three for later. The latter would
improve our functionality, simplify our markup (with one less
rule/syntax), and solve this particular problem. We might also be able
to get it to automatically close if's...

So plan on #1 for the next release. And maybe someday I'll get around to #3.

Cheers,
Dan

P.S. I just released a quick fix to version 3.13 so it doesn't cause
others to stumble. Thanks for catching this...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to