Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: Uniquely identifying each & every html template Date: Fri, 18 Jan 2013 20:59:17 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 20 Message-ID: References: <8deb6f5d-ff10-4b36-bdd6-36f9eed58e1e@googlegroups.com> NNTP-Posting-Host: panix1.panix.com X-Trace: reader1.panix.com 1358542757 26482 166.84.1.1 (18 Jan 2013 20:59:17 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 18 Jan 2013 20:59:17 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:37029 In <8deb6f5d-ff10-4b36-bdd6-36f9eed58e1e@googlegroups.com> Ferrous Cranus writes: > Problem is that i have to insert at the very first line of every .html template of mine, a unique string containing a number like: > index.html > somefile.html > other.html > nikos.html > cool.html > to HELP counter.py identify each webpage at a unique way. Instead of inserting unique content in every page, can you use the document path itself as the identifier? -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"