[prev] [thread] [next] [Date index for 2005/05/11]
This is a multi-part message in MIME format.
------_=_NextPart_001_01C5560B.91F23208
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hello,
=20
you can use the following:
<% newvariable =3D "string${myvariable}" %>
=20
greetings=20
=20
gernot
________________________________
Von: templates-admin@xxxxxxxxxxxxxxxx.xxx =
[mailto:templates-admin@xxxxxxxxxxxxxxxx.xxx] Im Auftrag von Denis =
Banovic
Gesendet: Mittwoch, 11. Mai 2005 11:22
An: templates@xxxxxxxxxxxxxxxx.xxx
Betreff: [Templates] Joining strings in older TT versions
Hi!=20
This is a simple question, I've searched in the doc's but found no =
answer.=20
How can you coin 2 strings in TT to one variable in the older =
TT-versions?=20
Usually you would write something like this:=20
<% newvariable =3D "string" _ myvariable %>=20
In older TT versions, this would throw an exception.=20
I've done this workaround but I'm sure there is nicer way to do that?=20
<% mylist=3D ["string", i] %><% newvariable =3D mylist.join() %>=20
Thanks=20
Denis=20
"THINK THE WEB WAY."=20
---------------------------------------------------=20
NCM - NET COMMUNICATION MANAGEMENT GmbH=20
---[ Denis Banovic - CTO=20
mailto:denis.banovic@xxx.xx <mailto:denis.banovic@xxx.xx> =20
---[ M=FChlstrasse 4a=20
AT - 5023 Salzburg=20
Tel. 0662 / 644 688=20
---[ Fax: 0662 / 644 688 - 88=20
http://www.ncm.at <http://www.ncm.at> =20
---------------------------------------------------=20
____________
Virus checked by G DATA AntiVirusKit
Version: AVK 15.0.2702 from 26.01.2005
Virus news: www.antiviruslab.com
------_=_NextPart_001_01C5560B.91F23208
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Joining strings in older TT versions</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1491" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D188482209-11052005>hello,</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D188482209-11052005></SPAN></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D188482209-11052005>you can use the =
following:</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D188482209-11052005><% newvariable =3D "string${myvariable}"=20
%></SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D188482209-11052005></SPAN></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D188482209-11052005>greetings </SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D188482209-11052005></SPAN></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D188482209-11052005>gernot</SPAN></FONT></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Dde dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>Von:</B> =
templates-admin@xxxxxxxxxxxxxxxx.xxx=20
[mailto:templates-admin@xxxxxxxxxxxxxxxx.xxx] <B>Im Auftrag von =
</B>Denis=20
Banovic<BR><B>Gesendet:</B> Mittwoch, 11. Mai 2005 11:22<BR><B>An:</B>=20
templates@xxxxxxxxxxxxxxxx.xxx<BR><B>Betreff:</B> [Templates] Joining =
strings in=20
older TT versions<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=3DArial size=3D2>Hi!</FONT> </P>
<P><FONT face=3DArial size=3D2>This is a simple question, I've searched =
in the doc's=20
but found no answer.</FONT> </P>
<P><FONT face=3DArial size=3D2>How can you coin 2 strings in TT to one =
variable in=20
the older TT-versions?</FONT> </P>
<P><FONT face=3DArial size=3D2>Usually you would write something like =
this:</FONT>=20
</P>
<P><FONT face=3DArial size=3D2><% newvariable =3D "string" _ =
myvariable=20
%></FONT> </P>
<P><FONT face=3DArial size=3D2>In older TT versions, this would throw an =
exception.</FONT> </P>
<P><FONT face=3DArial size=3D2>I've done this workaround but I'm sure =
there is nicer=20
way to do that?</FONT> </P>
<P><FONT face=3DArial size=3D2><% mylist=3D ["string", i] %><% =
newvariable =3D=20
mylist.join() %></FONT> </P><BR>
<P><FONT face=3DArial size=3D2>Thanks</FONT> <BR><BR><FONT face=3DArial=20
size=3D2>Denis</FONT> </P><BR>
<P><SPAN lang=3Dde><FONT face=3D"Courier New" size=3D2>"THINK THE WEB=20
WAY."</FONT></SPAN> <BR><SPAN lang=3Dde><FONT face=3D"Courier New"=20
size=3D2>---------------------------------------------------</FONT></SPAN=
>=20
<BR><SPAN lang=3Dde> <FONT=20
face=3D"Courier New" size=3D2>NCM - NET COMMUNICATION MANAGEMENT =
GmbH</FONT></SPAN>=20
<BR><SPAN lang=3Dde><FONT face=3D"Courier New" size=3D2>---[ Denis =
Banovic -=20
CTO</FONT></SPAN> <BR><SPAN =
lang=3Dde> =20
</SPAN><A href=3D"mailto:denis.banovic@xxx.xx"><SPAN lang=3Dde><U><FONT=20
face=3D"Courier New" color=3D#0000ff=20
size=3D2>mailto:denis.banovic@xxx.xx</FONT></U></SPAN></A><SPAN =
lang=3Dde></SPAN>=20
<BR><SPAN lang=3Dde><FONT face=3D"Courier New" size=3D2>---[ =
M=FChlstrasse=20
4a</FONT></SPAN> <BR><SPAN lang=3Dde><FONT face=3D"Courier New"=20
size=3D2> AT - 5023 Salzburg</FONT></SPAN> =
<BR><SPAN=20
lang=3Dde><FONT face=3D"Courier New" =
size=3D2> Tel. 0662=20
/ 644 688</FONT></SPAN> <BR><SPAN lang=3Dde><FONT face=3D"Courier New"=20
size=3D2>---[ Fax: 0662 / 644 688 - 88 </FONT></SPAN><BR><SPAN =
lang=3Dde><FONT=20
face=3D"Courier New" size=3D2> =
</FONT></SPAN><A=20
href=3D"http://www.ncm.at"><SPAN lang=3Dde><U><FONT face=3D"Courier New" =
color=3D#0000ff=20
size=3D2>http://www.ncm.at</FONT></U></SPAN></A><SPAN lang=3Dde></SPAN> =
<BR><SPAN=20
lang=3Dde><FONT face=3D"Courier New"=20
size=3D2>---------------------------------------------------</FONT></SPAN=
>=20
</P><BR>____________<BR>Virus checked by G DATA AntiVirusKit<BR>Version: =
AVK=20
15.0.2702 from 26.01.2005<BR>Virus news: <A=20
href=3D"http://www.antiviruslab.com">www.antiviruslab.com</A><BR></BODY><=
/HTML>
------_=_NextPart_001_01C5560B.91F23208--
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
|
AW: [Templates] Joining strings in older TT versions
|
Generated at 07:01 on 17 May 2005 by mariachi v0.52