[Templates] Joining strings in older TT versions

[prev] [thread] [next] [Date index for 2005/05/11]

From: Denis Banovic
Subject: [Templates] Joining strings in older TT versions
Date: 09:22 on 11 May 2005
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C5560A.EF3CEC08
Content-Type: text/plain;
		charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi!

This is a simple question, I've searched in the doc's but found no answer.

How can you coin 2 strings in TT to one variable in the older TT-versions?

Usually you would write something like this:

<% newvariable =3D "string" _ myvariable %>

In older TT versions, this would throw an exception.

I've done this workaround but I'm sure there is nicer way to do that?

<% mylist=3D ["string", i] %><% newvariable =3D mylist.join() %>


Thanks

Denis


"THINK THE WEB WAY."
---------------------------------------------------
	NCM - NET COMMUNICATION MANAGEMENT GmbH
---[  Denis Banovic - CTO
	mailto:denis.banovic@xxx.xx
---[  M=FChlstrasse 4a
      AT - 5023 Salzburg
      Tel. 0662 / 644 688
---[  Fax: 0662 / 644 688 - 88=20
      http://www.ncm.at
---------------------------------------------------



____________
Virus checked by G DATA AntiVirusKit
Version: AVK 15.0.2702 from 26.01.2005
Virus news: www.antiviruslab.com

------_=_NextPart_001_01C5560A.EF3CEC08
Content-Type: text/html;
		charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-1=
">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 6.0.6249.1">
<TITLE>Joining strings in older TT versions</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi!</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">This is a simple question, I've searched in=
 the doc's but found no answer.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">How can you coin 2 strings in TT to one var=
iable in the older TT-versions?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Usually you would write something like this=
:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&lt;% newvariable =3D &quot;string&quot; _=
 myvariable %&gt;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">In older TT versions, this would throw an e=
xception.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I've done this workaround but I'm sure ther=
e is nicer way to do that?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&lt;% mylist=3D [&quot;string&quot;, i] %&g=
t;&lt;% newvariable =3D mylist.join() %&gt;</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks</FONT>
<BR>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Denis</FONT>
</P>
<BR>

<P><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">&quot;THINK THE WEB=
 WAY.&quot;</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">------------------=
---------------------------------</FONT></SPAN>

<BR><SPAN LANG=3D"de">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=
=3D2 FACE=3D"Courier New">NCM - NET COMMUNICATION MANAGEMENT GmbH</FONT></SPAN=
>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">---[&nbsp; Denis B=
anovic - CTO</FONT></SPAN>

<BR><SPAN LANG=3D"de">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><A H=
REF=3D"mailto:denis.banovic@xxx.xx"><SPAN LANG=3D"de"><U><FONT COLOR=3D"#000=
0FF" SIZE=3D2 FACE=3D"Courier New">mailto:denis.banovic@xxx.xx</FONT></U></S=
PAN></A><SPAN LANG=3D"de"></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">---[&nbsp; M=FChls=
trasse 4a</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; AT - 5023 Salzburg</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; Tel. 0662 / 644 688</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">---[&nbsp; Fax: 06=
62 / 644 688 - 88 </FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; </FONT></SPAN><A HREF=3D"http://www.ncm.at"><SPAN LANG=3D"de"><=
U><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier New">http://www.ncm.at</F=
ONT></U></SPAN></A><SPAN LANG=3D"de"></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">------------------=
---------------------------------</FONT></SPAN>
</P>

<BR>____________<BR>
Virus checked by G DATA AntiVirusKit<BR>
Version: AVK 15.0.2702 from 26.01.2005<BR>
Virus news: <a href=3D"http://www.antiviruslab.com">;
www.antiviruslab.com</a><BR>
</BODY>
</HTML>
------_=_NextPart_001_01C5560A.EF3CEC08--


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Joining strings in older TT versions
Denis Banovic 09:22 on 11 May 2005

Generated at 07:01 on 17 May 2005 by mariachi v0.52