Changes between Initial Version and Version 1 of Ticket #11185, comment 2
- Timestamp:
- Feb 23, 2016, 2:12:30 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11185, comment 2
initial v1 1 The macro would return something like `<div id="tq13579" class="trac-ticketquery-placeholder"/>`, add javascript data under the same id, and add a javascript script which will replace all the `div.trac-ticketquery-placeholder` with HTML generated on the fly from the data. I think that using CoffeeScriptfor this task could be particularly convenient (multiline strings with Ruby-style embedded expressions).1 The macro would return something like `<div id="tq13579" class="trac-ticketquery-placeholder"/>`, add javascript data under the same id, and add a javascript script which will replace all the `div.trac-ticketquery-placeholder` with HTML generated on the fly from the data. I think that using [TracDev/CoffeeScript CoffeeScript] for this task could be particularly convenient (multiline strings with Ruby-style embedded expressions).