To me this sounds like it’s the same issue as serving static images you 
wouldn’t create a view for that unless you need to wrap it around some 
application logic. Or at least that’s what it sounds like to me based on the 
information provided. We could take the MVC concept really far and say that 
static files need to have a filesystem Model with Controller logic for finding 
the files and each have their own View for each filetype.

Thanks,
------------------------------------------
Ali Mesdaq (CISSP, GIAC-GREM)
Sr. Security Researcher
Websense Security Labs
http://www.WebsenseSecurityLabs.com<http://www.websensesecuritylabs.com/>
------------------------------------------

From: David [mailto:oldskif...@yahoo.es]
Sent: Friday, March 05, 2010 10:49 AM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Best practices: XML output from static XML

Well, as Catalyst works under MVC model, I thought that a best practice would 
be to use a view module although in this case, obiously, the view task is 
insignificant.

David


________________________________
De: "Mesdaq, Ali" <ames...@websense.com>
Para: The elegant MVC web framework <catalyst@lists.scsys.co.uk>
Enviado: vie,5 marzo, 2010 19:04
Asunto: RE: [Catalyst] Best practices: XML output from static XML
Maybe I am missing something but why is a view needed? If you are serving up a 
static file and its xml why don’t you just serve that file statically based on 
path? Is the header content-type not getting set properly for that file?

Thanks,
------------------------------------------
Ali Mesdaq (CISSP, GIAC-GREM)
Sr. Security Researcher
Websense Security Labs
http://www.WebsenseSecurityLabs.com<http://www.websensesecuritylabs.com/>
------------------------------------------

From: David [mailto:oldskif...@yahoo.es]
Sent: Friday, March 05, 2010 5:10 AM
To: catalyst@lists.scsys.co.uk
Subject: [Catalyst] Best practices: XML output from static XML

Hi,

I need to generate an XML output (Content-type: application/xml), but this XML 
output is the XML content which is stored in an XML file. I don't need to 
dinamically generate this XML content.
I have searched in google but I don't find any catalyst view module for 
managing this case. I don't know if exists any module for generating XML output 
from a static file as, for example, Catalyst::View::XSLT module 
(http://search.cpan.org/~janus/Catalyst-View-XSLT-0.08/lib/Catalyst/View/XSLT.pm<http://search.cpan.org/%7Ejanus/Catalyst-View-XSLT-0.08/lib/Catalyst/View/XSLT.pm>)
 does. That is, generate an output from a static file, in this case, an XML 
output.

I am not finding much information about designing your own views in Catalyst, 
or at least, I don't see much flexibility. All examples I have found need to be 
generated, through the helper view, with TT template or any other templates.
Is it possible to create your own view, with no template, and for example, in 
my case, read the output from a static file and send this output to the client? 
(I don't know exactly how Views works in Catalyst, though I have already read 
Catalyst tutorial and cookbook)

Thanks in advanced,


David





Click here<https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==> to report 
this email as spam.


Protected by Websense Hosted Email Security — 
www.websense.com<http://www.websense.com>

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to