Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Include simple text-based templating?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Christopher Lenz  
View profile  
 More options Sep 5 2006, 2:15 pm
From: Christopher Lenz <cml...@gmx.de>
Date: Tue, 5 Sep 2006 20:15:50 +0200
Local: Tues, Sep 5 2006 2:15 pm
Subject: Include simple text-based templating?
Hey folks,

would appreciate your thoughts on something I've been mulling over  
the last couple of days. See:

   <http://markup.edgewall.org/ticket/47>

 > As Markup already provides much of the functionality needed for
 > general-purpose templating (not just XML-based templating), it
 > should be possible to reuse this to create a very simple
 > text-based template engine, for those cases where you need to
 > generate plain text, and using a package such as Cheetah may be
 > overkill.

The ticket has a patch that implements that goal pretty much  
completely AFAICT:

   <http://markup.edgewall.org/attachment/ticket/47/texttmpl.2.diff>

That's an implementation of a simple yet powerful text-based template  
engine in under 100 lines. That's possible because it reuses all the  
functionality already provided in Markup for XML-based templating:  
directives, expression evaluation, and the processing model in  
general. It's not as powerful as Cheetah et al, but for generating  
simple stuff like plain text mail it should work okay, and you don't  
have to relearn much as a template author.

I personally think it would be a good idea to include that feature in  
Markup. But that would bring up the dreaded naming question again...  
Including text-based templating in a package called "Markup" (or  
PyMarkup) just doesn't make a lot of sense. Ah well... :-P

Cheers,
Chris
--
Christopher Lenz
   cmlenz at gmx.de
   http://www.cmlenz.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Perfect timing" by Larry Maccherone
Larry Maccherone  
View profile  
 More options Sep 5 2006, 2:52 pm
From: "Larry Maccherone" <LMaccher...@yahoo.com>
Date: Tue, 05 Sep 2006 11:52:38 -0700
Local: Tues, Sep 5 2006 2:52 pm
Subject: Perfect timing
Chris,

For me, your timing is perfect, I was about to start looking at text
templates to compliment my kid templates.  Now, I won't even look.
This should satisfy my needs.

I wonder if this would change the BDFL's opinion on kid/markup?

BTW, is that an extraneous "#endif" at the end of the doctest.  Does
that cause the final <BLANKLINE>?

Larry Maccherone


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Include simple text-based templating?" by Kevin Dangoor
Kevin Dangoor  
View profile  
 More options Sep 5 2006, 3:24 pm
From: "Kevin Dangoor" <dang...@gmail.com>
Date: Tue, 5 Sep 2006 15:24:22 -0400
Local: Tues, Sep 5 2006 3:24 pm
Subject: Re: Include simple text-based templating?
I had suggested something like this for Kid a long time back. This
looks like a nice addition that will handle the most common text
templating needs.

Good stuff!

On 9/5/06, Christopher Lenz <cml...@gmx.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karl Guertin  
View profile  
 More options Sep 5 2006, 3:38 pm
From: "Karl Guertin" <grayr...@gmail.com>
Date: Tue, 5 Sep 2006 15:38:54 -0400
Local: Tues, Sep 5 2006 3:38 pm
Subject: Re: Include simple text-based templating?
On 9/5/06, Christopher Lenz <cml...@gmx.de> wrote:

> But that would bring up the dreaded naming question again...
> Including text-based templating in a package called "Markup" (or
> PyMarkup) just doesn't make a lot of sense. Ah well... :-P

I approve any additions that cause a change in the current project name. :P

Snarkiness aside, I don't really expect to ever have to use this. As
long as you can't mix the text directives with template tags, I don't
have a problem with it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Dangoor  
View profile  
 More options Sep 5 2006, 3:50 pm
From: "Kevin Dangoor" <dang...@gmail.com>
Date: Tue, 5 Sep 2006 15:50:21 -0400
Local: Tues, Sep 5 2006 3:50 pm
Subject: Re: Include simple text-based templating?
On 9/5/06, Christopher Lenz <cml...@gmx.de> wrote:

> I personally think it would be a good idea to include that feature in
> Markup. But that would bring up the dreaded naming question again...
> Including text-based templating in a package called "Markup" (or
> PyMarkup) just doesn't make a lot of sense. Ah well... :-P

How about XmlDoesntSuckButYouCanUseTextOnlyAnyhowWhenYouNeedTo (or
XDSBYCUTOAWY for short)?

How about faux latin: Templatus

Kevin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Perfect timing" by Christopher Lenz
Christopher Lenz  
View profile  
 More options Sep 5 2006, 5:34 pm
From: Christopher Lenz <cml...@gmx.de>
Date: Tue, 5 Sep 2006 23:34:49 +0200
Local: Tues, Sep 5 2006 5:34 pm
Subject: Re: Perfect timing
Hi Larry,

Am 05.09.2006 um 20:52 schrieb Larry Maccherone:

> For me, your timing is perfect, I was about to start looking at text
> templates to compliment my kid templates.  Now, I won't even look.
> This should satisfy my needs.

Yeah, I think for simple use cases this should work pretty well.

The motivation for this, just as for Markup in general, was Trac,  
where we currently have the following rather ugly template in the  
Markup branch:

   <http://trac.edgewall.org/browser/sandbox/markup/templates/
ticket_notify_email.txt?rev=3653>

Generating plain text from an XML template is possible, but really a  
PITA. TextTemplate should work much better there.

> I wonder if this would change the BDFL's opinion on kid/markup?

Who knows... I don't understand the logic behind his opinion in this  
case anyway :-P

> BTW, is that an extraneous "#endif" at the end of the doctest.  Does
> that cause the final <BLANKLINE>?

You're quite right about that; removing the #endif revealed a bug  
that I've fixed in the new version of the patch:

   <http://markup.edgewall.org/attachment/ticket/47/texttmpl.3.diff>

Plus I guess an orphaned #endx line should probably raise an error.

Cheers,
Chris
--
Christopher Lenz
   cmlenz at gmx.de
   http://www.cmlenz.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Include simple text-based templating?" by Christopher Lenz
Christopher Lenz  
View profile  
 More options Sep 5 2006, 5:44 pm
From: Christopher Lenz <cml...@gmx.de>
Date: Tue, 5 Sep 2006 23:44:33 +0200
Local: Tues, Sep 5 2006 5:44 pm
Subject: Re: Include simple text-based templating?
Am 05.09.2006 um 21:50 schrieb Kevin Dangoor:

> On 9/5/06, Christopher Lenz <cml...@gmx.de> wrote:
>> I personally think it would be a good idea to include that feature in
>> Markup. But that would bring up the dreaded naming question again...
>> Including text-based templating in a package called "Markup" (or
>> PyMarkup) just doesn't make a lot of sense. Ah well... :-P

> How about XmlDoesntSuckButYouCanUseTextOnlyAnyhowWhenYouNeedTo (or
> XDSBYCUTOAWY for short)?

:-D

> How about faux latin: Templatus

Along those lines, Talin suggested "Papyrus". See also <http://
markup.edgewall.org/wiki/NameSuggestions>.

How about about names revolving around the meme of "weaving text"?  
"texere", "texture", "textyr"... not 100% happy with those, though.

Cheers,
Chris
--
Christopher Lenz
   cmlenz at gmx.de
   http://www.cmlenz.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Dangoor  
View profile  
 More options Sep 5 2006, 9:59 pm
From: Kevin Dangoor <dang...@gmail.com>
Date: Tue, 5 Sep 2006 21:59:26 -0400
Local: Tues, Sep 5 2006 9:59 pm
Subject: Re: Include simple text-based templating?
On Sep 5, 2006, at 5:44 PM, Christopher Lenz wrote:

It all depends on how search engine friendly you want to be. Becoming  
the first hit on Google for Papyrus would take a bit of time (though  
I'd imagine "python papyrus" would pretty quickly resolve). Templatus  
would very quickly converge, as would the others.

You might try plugging some things into nameboy and see if anything  
grabs you:

http://www.nameboy.com

You get such gems like Textkick that way.

Kevin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Project name (was: Include simple text-based templating?)" by Christopher Lenz
Christopher Lenz  
View profile  
 More options Sep 6 2006, 1:24 pm
From: Christopher Lenz <cml...@gmx.de>
Date: Wed, 6 Sep 2006 19:24:12 +0200
Local: Wed, Sep 6 2006 1:24 pm
Subject: Project name (was: Include simple text-based templating?)
Am 06.09.2006 um 03:59 schrieb Kevin Dangoor:

> On Sep 5, 2006, at 5:44 PM, Christopher Lenz wrote:
>> Along those lines, Talin suggested "Papyrus". See also <http://
>> markup.edgewall.org/wiki/NameSuggestions>.

>> How about about names revolving around the meme of "weaving text"?
>> "texere", "texture", "textyr"... not 100% happy with those, though.

> It all depends on how search engine friendly you want to be. Becoming
> the first hit on Google for Papyrus would take a bit of time (though
> I'd imagine "python papyrus" would pretty quickly resolve). Templatus
> would very quickly converge, as would the others.

Yeah, having a name that, when combined with "python", comes out  
prominently in a Google search isn't hard. The Markup site is already  
#1 for "markup python", "markup template", and "markup toolkit", for  
example.

I'm not terribly fond of "Templatus" though :-P

Jeroen Ruigrok suggested "Genshi" via IRC, which is Japanese for  
"thread for weaving", as in "Genshi is your thread for weaving web  
pages etc". I'm starting to really like the name, also because of the  
"gen" part which associates nicely with "generation"/"generator".

Another idea I had was "Kydd", i.e. emphasizing the Kid heritage but  
twisting the name a bit.

Cheers,
Chris
--
Christopher Lenz
   cmlenz at gmx.de
   http://www.cmlenz.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Dangoor  
View profile  
 More options Sep 6 2006, 1:42 pm
From: "Kevin Dangoor" <dang...@gmail.com>
Date: Wed, 6 Sep 2006 13:42:08 -0400
Local: Wed, Sep 6 2006 1:42 pm
Subject: Re: Project name (was: Include simple text-based templating?)
On 9/6/06, Christopher Lenz <cml...@gmx.de> wrote:

> I'm not terribly fond of "Templatus" though :-P

That's fine. Neither am I :)

> Jeroen Ruigrok suggested "Genshi" via IRC, which is Japanese for
> "thread for weaving", as in "Genshi is your thread for weaving web
> pages etc". I'm starting to really like the name, also because of the
> "gen" part which associates nicely with "generation"/"generator".

I like Genshi, except there's a web design company called Genshi Media
Group. While no one is likely to confuse a template engine with a web
design company, they may be too close for comfort in the eyes of
trademark law... (of course, which country's trademark laws then
becomes a question, but I personally try to sidestep all such issues
by just using an original name).

> Another idea I had was "Kydd", i.e. emphasizing the Kid heritage but
> twisting the name a bit.

I don't like this one, because it's phonetically the same as Kid.

Kevin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roger Demetrescu  
View profile  
 More options Sep 6 2006, 5:39 pm
From: "Roger Demetrescu" <roger.demetre...@gmail.com>
Date: Wed, 6 Sep 2006 18:39:04 -0300
Local: Wed, Sep 6 2006 5:39 pm
Subject: Re: Project name (was: Include simple text-based templating?)
I am not sure it will help, but it is funny anyway:  [1]    :)

[]s
Roger

[1] - http://www.lowchensaustralia.com/names/generators.htm

On 9/6/06, Kevin Dangoor <dang...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michele Cella  
View profile  
 More options Sep 6 2006, 6:27 pm
From: "Michele Cella" <michele.ce...@gmail.com>
Date: Wed, 06 Sep 2006 22:27:18 -0000
Local: Wed, Sep 6 2006 6:27 pm
Subject: Re: Project name (was: Include simple text-based templating?)

I like Genshi. ;-)

BTW +1 for the text template addition.

Thanks again for the great work Christopher.

Ciao
Michele


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Lenz  
View profile  
 More options Sep 7 2006, 6:24 am
From: Christopher Lenz <cml...@gmx.de>
Date: Thu, 7 Sep 2006 12:24:47 +0200
Local: Thurs, Sep 7 2006 6:24 am
Subject: Re: Project name (was: Include simple text-based templating?)
Am 06.09.2006 um 19:42 schrieb Kevin Dangoor:

> On 9/6/06, Christopher Lenz <cml...@gmx.de> wrote:
>> Jeroen Ruigrok suggested "Genshi" via IRC, which is Japanese for
>> "thread for weaving", as in "Genshi is your thread for weaving web
>> pages etc". I'm starting to really like the name, also because of the
>> "gen" part which associates nicely with "generation"/"generator".

> I like Genshi, except there's a web design company called Genshi Media
> Group. While no one is likely to confuse a template engine with a web
> design company, they may be too close for comfort in the eyes of
> trademark law... (of course, which country's trademark laws then
> becomes a question, but I personally try to sidestep all such issues
> by just using an original name).

I *think* there would be enough distinction between the two that that  
shouldn't be a problem.

Genshi is really growing on me. I've created some mockup logos here:

   <http://markup.edgewall.org/wiki/NameSuggestions#Genshi>

Cheers,
Chris
--
Christopher Lenz
   cmlenz at gmx.de
   http://www.cmlenz.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Dangoor  
View profile  
 More options Sep 7 2006, 7:19 am
From: Kevin Dangoor <dang...@gmail.com>
Date: Thu, 7 Sep 2006 07:19:12 -0400
Local: Thurs, Sep 7 2006 7:19 am
Subject: Re: Project name (was: Include simple text-based templating?)
On Sep 7, 2006, at 6:24 AM, Christopher Lenz wrote:

> I *think* there would be enough distinction between the two that that
> shouldn't be a problem.

> Genshi is really growing on me. I've created some mockup logos here:

>    <http://markup.edgewall.org/wiki/NameSuggestions#Genshi>

I like the crisp look of Genshi1.png

Kevin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Larry Maccherone  
View profile  
 More options Sep 7 2006, 8:14 am
From: "Larry Maccherone" <LMaccher...@yahoo.com>
Date: Thu, 07 Sep 2006 05:14:40 -0700
Local: Thurs, Sep 7 2006 8:14 am
Subject: Re: Project name (was: Include simple text-based templating?)
I'm +1 on Genshi pronounced "Jen - she" so it sounds like generate
instead of "Gaen - she" as I suspect it is pronounced in Japanese.

However, on the logo, my preference would be to stay away from the
Japanese lettering and go with a weave look.  I've seen several
instances where foreign symbols/names were used and had alternate
connotation or similarity to something pejorative, to know to be very
careful.  At the very least, we should get some input from a true
native.  I like the weave idea better anyway.

Larry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Dangoor  
View profile  
 More options Sep 7 2006, 8:22 am
From: "Kevin Dangoor" <dang...@gmail.com>
Date: Thu, 7 Sep 2006 08:22:03 -0400
Local: Thurs, Sep 7 2006 8:22 am
Subject: Re: Project name (was: Include simple text-based templating?)
On 9/7/06, Larry Maccherone <LMaccher...@yahoo.com> wrote:

> I'm +1 on Genshi pronounced "Jen - she" so it sounds like generate
> instead of "Gaen - she" as I suspect it is pronounced in Japanese.

Hmm... if the Japanese would be pronounced "Gaen-she", I would think
we should either pronounce it that way or spell it differently.
Otherwise, some fraction of the users will be mispronouncing it and
would even have a good reason to do so!

Kevin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ashemedai@gmail.com  
View profile  
 More options Sep 7 2006, 9:14 am
From: "asheme...@gmail.com" <asheme...@gmail.com>
Date: Thu, 07 Sep 2006 13:14:52 -0000
Local: Thurs, Sep 7 2006 9:14 am
Subject: Re: Project name (was: Include simple text-based templating?)

Larry Maccherone wrote:
> However, on the logo, my preference would be to stay away from the
> Japanese lettering and go with a weave look.  I've seen several
> instances where foreign symbols/names were used and had alternate
> connotation or similarity to something pejorative, to know to be very
> careful.  At the very least, we should get some input from a true
> native.  I like the weave idea better anyway.

I verified with Japanese friends of mine.

The only references I could find for 原糸 is a thread used for
weaving, most likely inspired from 絹糸 (kenshi) which means silk
thread.

I verified this with Chinese, but they don't know any compound like
原糸 as far as I could find. Also could not find anything in a
Cantonese dictionary.

And the pronunciation is gen-shi, where gen sounds like get, and shi
like she.

--
Jeroen Ruigrok van der Werven


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Lenz  
View profile  
 More options Sep 7 2006, 9:52 am
From: Christopher Lenz <cml...@gmx.de>
Date: Thu, 7 Sep 2006 15:52:32 +0200
Local: Thurs, Sep 7 2006 9:52 am
Subject: Re: Project name (was: Include simple text-based templating?)
Am 07.09.2006 um 14:14 schrieb Larry Maccherone:

> I'm +1 on Genshi pronounced "Jen - she" so it sounds like generate
> instead of "Gaen - she" as I suspect it is pronounced in Japanese.

We can add a pronunciation FAQ entry, but I think we should go with  
the actual pronunciation "gen-she". Shouldn't discriminate against  
those who know the correct pronunciation ;-)

> However, on the logo, my preference would be to stay away from the
> Japanese lettering and go with a weave look.  I've seen several
> instances where foreign symbols/names were used and had alternate
> connotation or similarity to something pejorative, to know to be very
> careful.  At the very least, we should get some input from a true
> native.  I like the weave idea better anyway.

According to Jeroen it should be pretty safe. He also commented on  
IRC: "the kanji even clarifies it is about the thread, since there's  
a bunch of genshi pronunciations for various kanji combinations".

If we were to use some kind of thread/weaving graphic (IIUC), someone  
needs to draw that... that's definitely beyond my artistic  
capabilities :-P

Cheers,
Chris
--
Christopher Lenz
   cmlenz at gmx.de
   http://www.cmlenz.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »