[Moin-user] Adding content (script tag) to HTML header from a macro

Paul Moore p.f.moore at gmail.com
Wed Nov 30 02:43:04 EST 2005


On 11/30/05, Nir Soffer <nirs at freeshell.org> wrote:
>
> On 30 Nov, 2005, at 11:33, Paul Moore wrote:
>
> > In order to check if this is the first time the macro has been called
> > on this page, I can add attributes to the request object
>
> You can use this, but you don't really care how many times the macro is
> called. Use simpler code like this:

Yes, that's what I'd do for this case. The code I posted, counting the
number of calls, was just a test (the macro just displayed the count,
to save me having to worry about whether my script code was doing the
right thing, as well... :-))

Thanks for the confirmation.

Paul.




More information about the Moin-user mailing list