* Christopher Taranto <[EMAIL PROTECTED]> [2002-07-18 12:44]:
> Is there a way to get the current filename being parsed when using ttree?
> 
> I am parsing a full directory tree and would like to use the current 
> filename to conditionally update my navigation bar depending upon the page 
> being parsed.

There is the template metadata, which contains the (relative to
INCLUDE_PATH) filename in the attribute 'name':

  # file: foo/update
  Filename: [% template.name %]

  foo/update

If ABSOLUTE is set, and the template is called with a fullname, the
tempalte.name contains the whole filename:

  # file: /tmp/foo/update
  Filename: [% template.name %]

  /tmp/foo/update

(darren)

-- 
When I despair, I remember that all through history, the way of truth
and love has always won. There have been murderers and tyrants, and
for a time they can seem invincible. But in the end they always fall.
Think of it, always.
    -- Gandhi


Reply via email to