Re: How to make an action generate html?

Ralf Schlatterbeck <[email protected]> Wed, 14 Feb 2024 16:54:19 +0100
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
On Wed, Feb 14, 2024 at 09:35:06AM -0500, John P. Rouillard wrote:
> 
> Thanks for the reply. What you showed is basically what I have. I get
> an SVG drawn alone in the web browser. However I really want to wrap
> that SVG in the icing of the page.html template so the chart looks
> like it's part of the tracker.

Why don't you put it (conditionally maybe) into an image tag inside
page.html? Or in some genuine template for the purpose? Including the
generated file into an image tag (even if the *name* is computed
depending on the purpose) is normal templating?

So you would have two things:
- An action creating the raw image
- Normal templating making use of the link to the image action inside an
  image tag.

Kind regards
Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   www.runtux.com
Reichergasse 131, A-3411 Weidling       email: [email protected]