diff options
-rw-r--r-- | Makefile | 3 | ||||
-rwxr-xr-x | example | bin | 0 -> 8790 bytes | |||
-rw-r--r-- | example.cpp | 8 | ||||
-rw-r--r-- | example.py | 9 | ||||
-rw-r--r-- | flask.h | 14 |
5 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bc09577 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +all: example +example: example.cpp + g++ -o example example.cpp Binary files differdiff --git a/example.cpp b/example.cpp new file mode 100644 index 0000000..3b07d61 --- /dev/null +++ b/example.cpp @@ -0,0 +1,8 @@ +#include "flask.h" + +flask::Flask app; + +int main() +{ + app.run(); +} diff --git a/example.py b/example.py new file mode 100644 index 0000000..541f031 --- /dev/null +++ b/example.py @@ -0,0 +1,9 @@ +from flask import Flask +app = Flask(__name__) + +@app.route("/") +def hello(): + return "Hello World!" + +if __name__ == "__main__": + app.run(host="0.0.0.0") @@ -0,0 +1,14 @@ +namespace flask +{ + class Flask + { + public: + Flask() + { + } + + void run() + { + } + }; +}; |