Does Cheetah count line numbers its written?
Nate Reid <[email protected]> Tue, 8 Mar 2011 10:45:59 -0800
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
--===============7057923488197310207==
Content-Type: multipart/alternative;
boundary="_d24a8f99-3ca5-4cee-aebd-4d6c215c01c5_"
--_d24a8f99-3ca5-4cee-aebd-4d6c215c01c5_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I'm writing a source generator using Cheetah templates for C++ and would li=
ke to add #line directives into the generated source. Without delving deep=
into the Cheetah source code=2C I was wondering if anyone on the list knew=
if Cheetah keeps track of how many lines are written so I can easily query=
the current line number in the template and use that in the template outpu=
t itself for inserting #line directives into the generated source code.
Thanks!
-Nate
=
--_d24a8f99-3ca5-4cee-aebd-4d6c215c01c5_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Tahoma
}
--></style>
</head>
<body class=3D'hmmessage'>
I'm writing a source generator using Cheetah templates for C++ and would li=
ke to add #line directives into the generated source. =3B Without delvi=
ng deep into the Cheetah source code=2C I was wondering if anyone on the li=
st knew if Cheetah keeps track of how many lines are written so I can easil=
y query the current line number in the template and use that in the templat=
e output itself for inserting #line directives into the generated source co=
de.<br>Thanks!<br>-Nate<br> </body>
</html>=
--_d24a8f99-3ca5-4cee-aebd-4d6c215c01c5_--
--===============7057923488197310207==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
--===============7057923488197310207==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Cheetahtemplate-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
--===============7057923488197310207==--