Re: how to generate html table from "table" data?



petr.jakes.tpc@xxxxxxxxx a écrit :
> Vasudev Ram wrote:
Why not try writing your own code for this first?
If nothing else, it'll help you learn more, and may also help you
understand better, the other options.


Thanks for your reply even it was not really helpful.

The answers boil down to:
- use the templating engine that comes with your web framework
or
- use whatever templating engine you like
or
- just do it by hand

The remaining work is obviously such a no-brainer that there's no need for a specific package, and so application specific that there's probably nothing like a one-size-fits-all answer. IOW : you're not likely to find more "helpful" answer - and your above comment won't help. FWIW, I just wrote a function generating an html table from a list of header and a list of rows. I wrote the most Q&D, straightforward, braindead way, it's 17 lines long, doesn't even need an import statement, and took me less than 2 minutes to write - that is, far less work than reading your post and answering it.
.



Relevant Pages

  • Re: how to generate html table from "table" data?
    ... Bruno Desthuilliers wrote: ... > Vasudev Ram wrote: ... use the templating engine that comes with your web framework ... I'm not actually doing HTML ...
    (comp.lang.python)
  • Re: [PHP] Whats more efficient? ( echo " "; or <?php echo ?> )
    ... php embedded in your HTML where required. ... amount of parsing that the engine has to do. ... using a templating engine does allow you to ... memory efficient, but, in my humble opinion, it is one of the easiest to ...
    (php.general)
  • Re: opinions on inline server-side code?
    ... not sure how HTML is created dynamically through scripts. ... Templating Engine: ... Syntax Highlighting: ...
    (alt.html)
  • RE: How do you build your HTML?
    ... I already use HTML::Mason as a templating engine and everything is ... What I need is a way to generate HTML 4.01 compliant HTML. ... > Hi Kevin and everyone, ... >> I've tried all the linux HTML editors and none of them come close to ...
    (perl.beginners)
  • Re: opinions on inline server-side code?
    ... inline code is a bad thing. ... things like style, HTML vs XHTML, etc. (although, I've never heard any ... PHP in HTML: all the tags ruin the flow of the HTML and make it ... HTML (ironic since PHP was originally just a templating engine). ...
    (alt.html)