How to make an action generate html?
"John P. Rouillard" <[email protected]> Tue, 13 Feb 2024 13:01:24 -0500
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all: I am trying to find out how to return a templated page from an action. My thought is that the page template would be something like: index.chart.html and would be expanded/returned from the action with the action somehow embedding an svg as the main content. This is an attempt to embed a chart (e.g https://wiki.roundup-tracker.org/QueryResultPieCharts) invoked via an action in a standard page template. I want to use an action because it gets the request, database access etc. when invoked (as part of self). IIUC templating utilities/function don't have access to any of that unless invoked with explicit arguments like: draw_chart(request, db) I think templating renderWith() might be useful? Any ideas here? -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions.