= [GenshiRecipes Genshi Recipes]: Automatically Populating an HTML Form = The following template provides a match template that automatically adds a `value` attribute to any `` element that has matching data in the context. {{{ #!xml

}}} Assuming the context data contained a variable “form” that was `{'something': 'Look, Ma'}`, the output would look as follows: {{{ #!xml

}}} This recipe would need to be extended to also support checkboxes, select fields, and so on. ---- See also: GenshiRecipes, [wiki:Documentation/xml-templates.html Genshi XML Template Language]