309_uppsrc.diff
uppsrc/Skylark/Complex.upt 2012-07-08 20:45:41 +0400 | ||
---|---|---|
1 |
template "Skylark application with main page" main; |
|
2 |
|
|
3 |
id "Main class name" classname = PACKAGE; |
|
4 |
id "Main page root name" root = PACKAGE; |
|
5 |
option "Default handlers" handlers = 0; |
|
6 |
option "Use SSE2" sse2 = 1; |
|
7 |
|
|
8 |
@@<:PACKAGE:>.h |
|
9 |
#ifndef _<:PACKAGE:>_<:PACKAGE:>_h |
|
10 |
#define _<:PACKAGE:>_<:PACKAGE:>_h |
|
11 |
|
|
12 |
#include <Skylark/Skylark.h> |
|
13 |
|
|
14 |
using namespace Upp; |
|
15 |
|
|
16 |
class <:classname:> : public SkylarkApp { |
|
17 |
public: |
|
18 |
typedef <:classname:> CLASSNAME; |
|
19 |
<:classname:>(); |
|
20 |
}; |
|
21 |
|
|
22 |
#endif |
|
23 |
@@main.cpp |
|
24 |
#include "<:PACKAGE:>.h"<:?handlers:> |
|
25 |
|
|
26 |
SKYLARK(HomePage, "") |
|
27 |
{ |
|
28 |
http << "<html><body></body></html>"; |
|
29 |
} |
|
30 |
|
|
31 |
SKYLARK(CatchAll, "**") |
|
32 |
{ |
|
33 |
http.Redirect(HomePage); |
|
34 |
}<:.:> |
|
35 |
|
|
36 |
<:classname:>:<:classname:>() |
|
37 |
{<:?root:> |
|
38 |
root = "<:root:>";<:.:> |
|
39 |
#ifdef _DEBUG |
|
40 |
prefork = 0; |
|
41 |
use_caching = false; |
|
42 |
#endif |
|
43 |
} |
|
44 |
|
|
45 |
CONSOLE_APP_MAIN |
|
46 |
{ |
|
47 |
<:classname:>().Run(); |
|
48 |
} |
|
49 |
@@<:PACKAGE:>.upp |
|
50 |
uses |
|
51 |
Skylark; |
|
52 |
|
|
53 |
file |
|
54 |
<:PACKAGE:>.h, |
|
55 |
main.cpp; |
|
56 |
|
|
57 |
mainconfig |
|
58 |
"" = "MT<:?sse2:> SSE2<:.:>"; |
uppsrc/Skylark/Normal.upt 2012-07-08 20:31:46 +0400 | ||
---|---|---|
1 |
template "Basic Skylark application" main; |
|
2 |
|
|
3 |
option "Create header" header; |
|
4 |
option "Use SSE2" sse2 = 1; |
|
5 |
|
|
6 |
@@<:PACKAGE:>.h |
|
7 |
??header |
|
8 |
#ifndef _<:PACKAGE:>_<:PACKAGE:>_h |
|
9 |
#define _<:PACKAGE:>_<:PACKAGE:>_h |
|
10 |
|
|
11 |
#include <Skylark/Skylark.h> |
|
12 |
|
|
13 |
using namespace Upp; |
|
14 |
|
|
15 |
#endif |
|
16 |
@@<:PACKAGE:>.cpp |
|
17 |
#include <:?header:>"<:PACKAGE:>.h"<:/:><Skylark/Skylark.h> |
|
18 |
|
|
19 |
using namespace Upp;<:.:> |
|
20 |
|
|
21 |
CONSOLE_APP_MAIN |
|
22 |
{ |
|
23 |
} |
|
24 |
@@<:PACKAGE:>.upp |
|
25 |
uses |
|
26 |
Skylark; |
|
27 |
|
|
28 |
file<:?header:> |
|
29 |
<:PACKAGE:>.h,<:.:> |
|
30 |
<:PACKAGE:>.cpp; |
|
31 |
|
|
32 |
mainconfig |
|
33 |
"" = "MT<:?sse2:> SSE2<:.:>"; |
uppsrc/Skylark/Skylark.upp 2012-07-08 20:33:53 +0400 | ||
---|---|---|
26 | 26 |
Client readonly separator, |
27 | 27 |
Base.witz, |
28 | 28 |
skylark.js, |
29 |
Meta readonly separator, |
|
30 |
Normal.upt, |
|
31 |
Complex.upt, |
|
29 | 32 |
Info readonly separator, |
30 | 33 |
src.tpp, |
31 | 34 |
srcdoc.tpp; |