Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Skylark - serving CSS style sheets
Re: Skylark - serving CSS style sheets [message #40284 is a reply to message #40281] Mon, 15 July 2013 14:17 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

mdelfede wrote on Mon, 15 July 2013 08:20

Hi,

I'm working with SCGI, so I'd prefere to serve ALL of my files directly from skylark and not let the webserver do it.
How can this be done ?

Hi,

Have a look at Skylark/static.icpp. There is a handler which can be used to serve styles, javascripts and images. Also, it contains some support for adding links to witz templates that allow for aggressive (configurable) usage of browser caches.
mdelfede wrote on Mon, 15 July 2013 08:20

Is it possible to "insert" somehow the file inside compiled app and serve it directly, without saving to disk before as is done for witz templates ?

Any file can be included into executable using *.brc file. Then you can serving simply by passing the data to Http::Content().

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to pass vector/array of structs to witz?
Next Topic: File upload
Goto Forum:
  


Current Time: Fri Jun 07 23:53:07 CEST 2024

Total time taken to generate the page: 0.01201 seconds