[Twisted-web] patch: default values for slots from html templates

Ed Suominen general at eepatents.com
Thu Mar 3 11:47:06 MST 2005


Cool! I for one will find that useful when it's committed (hint hint)...

---
Ed Suominen
Registered Patent Agent
Open-Source Software Author (yes, both...)
Web Site: http://www.eepatents.com

On Thursday 03 March 2005 09:41 am, Steven Armstrong wrote:
> Hi all
>
> I've found out lately that you can give a slot a default value when
> using stan. Attached is a patch that enables that functionality for
> xmlstring and xmlfile templates.
>
> Stan:
> T.span[T.slot("my_slot_name", default="Whatever")]
>
> HTML:
> <span><n:slot name="my_slot_name" default="Whatever" /></span>
>
>
> regards
> Steven



More information about the Twisted-web mailing list