[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
-
Rusty Klophaus January 3rd, 2009 @ 04:27 PM
- Assigned user set to Rusty Klophaus
-
Rusty Klophaus January 3rd, 2009 @ 11:19 PM
- State changed from new to open
-
Rusty Klophaus January 3rd, 2009 @ 11:28 PM
- State changed from open to resolved
(from [0984daed4d82d1b37ea7957022808172196fc97a]) Patches: Use new html term printer from Tom McNulty [#16 state:resolved], Make templates able to fallthrough to the first defined callback from Tom McNulty [#18 state:resolved], Optimize wf_utils:get_*base/1 functions from Martin Scholl [#19 state:resolved] http://github.com/rklophaus/nitr...
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.
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
Attachments
Referenced by
- 16 [TODO] Make elements use the html term printer (from [0984daed4d82d1b37ea7957022808172196fc97a]) Patches...
- 18 [TODO] Add default option to template (from [0984daed4d82d1b37ea7957022808172196fc97a]) Patches...
- 19 Micro optimization of wf_utils:get_*base/1 (from [0984daed4d82d1b37ea7957022808172196fc97a]) Patches...