[quills-dev] Re: 1.5 final?
Michael Reitsma mreitsma at gmail.comThu Nov 2 07:47:56 UTC 2006
- Previous message: [quills-dev] Re: 1.5 final?
- Next message: [quills-dev] WeblogArchive [was: 1.5 final?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yes i noticed that.
But what i meant was more like with functions in any other language:
function myFunction(aobject){
aobject.doStuff
}
call myFunction(weblogentry) OR
call myFunction(weblogarchive)
This way the macro stays the same and can be reused.
What i have seen sofar is that the maco's explicitly know which objects to
use.
I modified the weblog view template somewhat to show the weblogentry author.
I used the document_byline macro for this. The document byline macro uses
here.something. But its get called from the weblog (not the entry) so here is
the weblog, not the entry.
I had to make a second macro that uses weblogentry.something .
If the macro could be handed a object they would have stayed the same,
because it could do object.something .
Thats why i asked.
rgrds Mike
On 11/1/06, Tim Hicks <tim at sitefusion.co.uk> wrote:
>
> Michael Reitsma wrote:
>
> > Somewhat related....
> > When i call a macro in a ZPT can i hand it an object, such as a
> > weblogentry ?
>
> You can assign a name to an object with tal:define, then do a
> metal:use-macro and have the macro expect to find that named object in
> its namespace.
>
> Tim
>
--
met vriendelijke groeten / with kind regards
Michael Reitsma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.etria.com/pipermail/quills-dev/attachments/20061102/7f964df2/attachment.htm
- Previous message: [quills-dev] Re: 1.5 final?
- Next message: [quills-dev] WeblogArchive [was: 1.5 final?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list