Forum OpenACS Development: Auto-localize breaks adp if defined - or am i missing something?

I must be missing something, because core packages seem to successfully use defined in adp if tags, but with something simple like:

<if @prev_url@ defined>|</if>

I get the error:

can't read "prev_url": no such variable
    while executing
"lang::util::localize ${prev_url}"
    invoked from within
"append __adp_output "

Am I going mental? What am I doing wrong here?

Yes I was going mental. There was a missing </if> in the template and the if tags were simply being rendered as html.

It would be nice if unbalanced adp tags generated some kind of error.

Yeah, that's a problem with the parser, it's pretty dumb.