File: README.md

package info (click to toggle)
witty 3.3.3%2Bdfsg-4.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 28,228 kB
  • ctags: 26,694
  • sloc: cpp: 147,809; ansic: 77,999; xml: 16,331; sh: 1,303; makefile: 198; java: 86; sql: 14
file content (31 lines) | stat: -rw-r--r-- 1,232 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
WidgetGallery example
---------------------

This is the [widget gallery](http://www.webtoolkit.eu/widgets), which serves more as a directory of widgets available in Wt.

How to run
----------

This application illustrates a recommended deployment setup for a more involved application, separating:
- docroot: these are publicly available files for the browser to download
  through the web server (e.g. css, resources, ...)
- approot: these are private application files opened by the application (e.g.
  resource files, config files, etc...) and not deployed in your document root

To run the application using the built-in httpd, you thus need to:

    cd widgetgallery/docroot
    ln -s ../../../resources . # include standard Wt resource files in docroot
    cd ..
    ../../build/examples/widgetgallery/widgetgallery.wt \
          --docroot docroot --approot approot \
          --http-address 0.0.0.0 --http-port 8080

What it illustrates
-------------------

- most widgets in Wt in some form or another, in combination with the bootstrap
  theme (you can actually trigger the use of another theme using
  ?theme=default or ?theme=polished parameters)
- lots of small examples
- internal path handling and cross referencing