in reply to Re: XML as part of the Web app warchest....
in thread XML as part of the Web app warchest....

Very good point!

So, what you are saying is, that by using an appropriate template I can output HTML, or XML or whatever. I am not sure how PDF would be generated with templates, but I am certain somebody will tell me! What you are sying perrin is that I can generate XML and do whatever with it, rather than having to use XML internally. Of course even a 'simple' templating package like HTML::Template should produce output in other markup styles dependant purely on the template itself.

Well, yes, WAP or whatever. When I had anything to do with cell-phones and the like I was designing the hardware, you know RF stuff and the like, not the firmware :) I am going to have to do a bit of a refresher on those pesky things. It is not just "one app" as such. It is a suite of tools which will include a scheduler for sales-people. The customers actual words it would be useful for us if the sales people using the new internet capable phones, or devices such as the Blackberry from RIM could access their scheduler functions and the like.

As a programmer - logic and presentation have no part being mixed up with each other. This afternoon I whipped up a simple test app with several functions - in PM terms - nodelets. By using a couple of different templates and a couple of stylesheets I effectively had a very neat 're-skinnable' application. This is the degree of separation I am looking for. Thus this will obviously effect my choice of template systems for this is the degree of flexibility the client is wanting to pay for!

jdtoronto

  • Comment on Re: Re: XML as part of the Web app warchest....

Replies are listed 'Best First'.
Re: Re: Re: XML as part of the Web app warchest....
by perrin (Chancellor) on Oct 07, 2003 at 01:22 UTC
    PDFs are basically PostScript, and people have used Template Toolkit (and probably other things) to generate PostScript. Then you pass it through something like ps2pdf. I believe in some cases the relevant part pf PDF is plain text, so you can actually do it just like HTML.

    If you ever find something that you can't generate simply with a template, you just need to change your application a little to support views being implemented in different ways, i.e. this view uses HTML::Template and this one uses PDF::Reuse.