#16 ✓resolved
Rusty Klophaus

[TODO] Make elements use the html term printer

Reported by Rusty Klophaus | December 29th, 2008 @ 04:34 PM

When we render the elements, we currently do something like

wf:f("<a id='~s' href='~s' class='~s'>~s</a>", ...)

The attached patch adds a wf_tags lib that lets you express this much more cleanly, like so:

wf_tags:emit_tag(a, Contents, [ {id, ControlID}, {href, HREF}, {class, Class} ]).

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Nitrogen Web Framework for Erlang

People watching this ticket

Referenced by

Pages