* Dave Hodgkinson <[EMAIL PROTECTED]> [2002-07-26 12:00]:
> I want to render some pages in two steps, so one rendering to flat
> files of items from a database, then another rendering via my good
> friend Apache::Template live.
> 
> Obviously, the [% stuff gets wiped out on the first pass. Can I escape
> them somehow? Or do I have to use differing delimiters for each pass?

Have the two steps use different TAGSTLYES:

  [% TAGS <% %> %]

  <% "I am processed the first time" %>

  [% "I pass through the first time, and am processed the second time";
     "(assuming that TAGS is not set to <%, %> the second time too)";
     "Note that the first line, the TAGS line, gets eaten by the ";
     "parser the first time, not the second.";
  %]

That will work, and is, in fact, how all the documentation is generated
with [% and %] in it.

(darren)

-- 
An error on your own is safer than ten truths accepted on faith,
because the first leaves you the means to correct it, but the second
destroys your capacity to distinguish truth from error.
    -- Ayn Rand


Reply via email to