A C# framework for building web applications based on the Flask syntax.
C# 99.4%
Other 0.6%
4 1 0

Clone this repository

https://tangled.org/keii.dev/thermos
git@tangled.org:keii.dev/thermos

For self-hosted knots, clone URLs may differ based on your setup.

readme.md

Thermos#

If you know Flask you know Thermos.

A Simple Hello World Application#

Heres a simple thermos application:

using thermos;

namespace helloworld;

public class Program {
    [Route("/")]
    public static string HelloWorld() {
        return "<p>Hello, World!</p>";
    }

    static void Main() {
        var app = new Thermos();

        app.Run();
    }
}

And then the same application in Flask:

from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello_world():
    return "<p>Hello, World!</p>"

Thermos aims to follow the Flask syntax to the best of it's ability to allow for an easy transition.