0

Does gwan support SSI or there is another way to merge different HTML data ?

I'm not sure it's the best way, but I want to include static HTML data into another HTML files ... What do you use if SSI is not working?

solisoft
  • 669
  • 4
  • 12

1 Answers1

0

SSI can be archived by G-WAN's Dynamic buffers API: simply replace a HTML comment with your partial HTML content.

Use xbuf_frfile() to load your HTML templates. Use xbuf_repl() to "include" the partial HTML to your host page.

See contact.c from G-WAN samples.

Nagi
  • 256
  • 1
  • 2
  • 4
  • The thing is that I don't want to load a servlet ... Using the /www folder and keep url user friendly like http://mydomain.com/my/wonderfull/page.html – solisoft Nov 05 '12 at 18:55
  • G-WAN handlers are not supposed to modify the content. However, you can use a handler to rewrite the url. – Nagi Nov 06 '12 at 00:46
  • 2
    Note: G-WAN **Connection handlers** are not supposed to modify contents, but G-WAN **Content handlers** have no other purpose. – Gil Nov 06 '12 at 10:01