Re: how to write custom tag in skunkweb? - how to register the tag?
Jacob Smullyan <[email protected]>
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Sep 13, 2004 at 11:27:12AM +0800, Ren Bing wrote: > Dear all, > > Many thanks for the information, I think I can figure out how to write a > custom (at least simple ones) tag from checking the existing ones. > > However, there's still one question: how to register my custom tag to the > system, so that it can be used in the STML? Shall I register it somewhere or > shall I put it into some specific packages? There is a global tag registry, and you add tag instances to it. For an example, take a look at __initTags() in templating.__init__ (SkunkWeb/Services/templating/__init__.py). Cheers, js -- Jacob Smullyan
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBRe3vuqamFyFXXLIRAjXrAJ472vvZcNGAYk98N6l4nmyCmVLldgCfSeQi xmDIzgvJs0F2ahlt33MvlqY= =KsJ0 -----END PGP SIGNATURE-----