There seems to be a bug inside index.pl and article.pl, because I had TT2 code inside my posting, which looked fine in the preview at submit.pl, but looks now horrible in index.pl and article.pl.
IMHO neither submit.pl nor index.pl and article.pl should execute TT2 statements inside article bodies. (Perhaps some of the SlashCode authors can escape that code inside the article. Thanks.)
1. Template code is not being executed. What is happening is that your text is being swallowed by a thing that allows authors to do things like <A HREF="[% perl %]"> to get the URL of the most recent article about "perl". That's why you see those URLs. This is a bug, IMO, because the way it is written, it is impossible to put template code in the URLs.
I've filed a bug [sourceforge.net] if you are interested in following it.
2. If you do [% USE Slash; Slash.VERSION %] you can, right now, get a version. But it is of Slash::Display::Plugin, not Slash itself. D'oh. I am adding a method version (lowercase) to give you the Slash version (which in my case is 2.1.0, or 2.00100). Witness:
Escaping Bug? (Score:1)
There seems to be a bug inside index.pl and article.pl, because I had TT2 code inside my posting, which looked fine in the preview at submit.pl, but looks now horrible in index.pl and article.pl.
IMHO neither submit.pl nor index.pl and article.pl should execute TT2 statements inside article bodies. (Perhaps some of the SlashCode authors can escape that code inside the article. Thanks.)
-- There is no place like $HOME
Re:Escaping Bug? (Score:2)
1. Template code is not being executed. What is happening is that your text is being swallowed by a thing that allows authors to do things like <A HREF="[% perl %]"> to get the URL of the most recent article about "perl". That's why you see those URLs. This is a bug, IMO, because the way it is written, it is impossible to put template code in the URLs.
I've filed a bug [sourceforge.net] if you are interested in following it.
2. If you do [% USE Slash; Slash.VERSION %] you can, right now, get a version. But it is of Slash::Display::Plugin, not Slash itself. D'oh. I am adding a method version (lowercase) to give you the Slash version (which in my case is 2.1.0, or 2.00100). Witness:
$ perl -MSlash::Test=slash -leDisplay
[% USE Slash; Slash.VERSION; "\n"; Slash.version %]
1.2
2.001000
(By the way, Slash::Test, in slash 2.2, is really cool for debugging and testing stuff in Slash.