JSON tal formatter

Bug #250842 reported by Eleanor Berger on 2008-07-22
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Low
Unassigned

Bug Description

It is often the case that we need to format some string for inclusion inside a <script> tag. To do that we use a json serializer. It would be convenient if we have a formatter that uses the json serializer on strings (or other valid JSON primitives), so that we could write <script tal:content="string:field = ${view/field/fmt:json}" />

Curtis Hovey (sinzui) on 2009-11-11
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
tags: added: javascript
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers