diff --git a/Home.md b/Home.md index e604a2a..f3e2d6d 100644 --- a/Home.md +++ b/Home.md @@ -1,48 +1,55 @@ -# Summary +* **Switch between template engines**: Select the way you like to parse your html files, switchable via one-line-configuration, [read more](render) +* **Typescript**: Auto-compile & Watch your client side code via the [typescript plugin](plugin-typescript) +* **Online IDE**: Edit & Compile your client side code when you are not home via the [editor plugin](plugin-editor) +* **Iris Online Control**: Web-based interface to control the basics functionalities of your server via the [iriscontrol plugin](plugin-iriscontrol). Note that Iris control is still young +* **Subdomains**: Easy way to express your api via custom and dynamic subdomains[*](subdomains) +* **Named Path Parameters**: Probably you already know what that means. If not, [It's easy to learn about](named-parameters) +* **Custom HTTP Errors**: Define your own html templates or plain messages when http errors occurs[*](custom-http-errors) +* **Internationalization**: [i18n](middleware-internationalization-and-localization) +* **Bindings**: Need a fast way to convert data from body or form into an object? Take a look [here](request-body-bind) +* **Streaming**: You have only one option when streaming comes in game[*](streaming) +* **Middlewares**: Create and/or use global or per route middlewares with the Iris' simplicity[*](middlewares) +* **Sessions**: Sessions provides a secure way to authenticate your clients/users [*](package-sessions) +* **Realtime**: Realtime is fun when you use websockets[*](package-websocket) +* **Context**: [Context](context) is used for storing route params, storing handlers, sharing variables between middlewares, render rich content, send file and much more[*](context) +* **Plugins**: You can build your own plugins to inject the Iris framework[*](plugins) +* **Full API**: All http methods are supported[*](api) +* **Party**: Group routes when sharing the same resources or middlewares. You can organise a party with domains too! [*](party) +* **Transport Layer Security**: Provide privacy and data integrity between your server and the client[*](tls) +* **Multi server instances**: Besides the fact that Iris has a default main server. You can declare as many as you need[*](declaration) +* **Zero configuration**: No need to configure anything, unless you're forced to. Default configurations everywhere, which you can change with ease, well structured +* **Zero allocations**: Iris generates zero garbage -* [Introduction](README) -* [Features](features) -* [Versioning](versioning) -* [Install](install) -* [Hi](hi) -* [Transport Layer Security](tls) -* [Handlers](handlers) - * [Using Handlers](using-handlers) - * [Using HandlerFuncs](using-handlerfuncs) - * [Using Annotated](using-annotated) - * [Using native http.Handler](using-native-httphandler) - * [Using native http.Handler via iris.ToHandlerFunc()](using-native-httphandler-via-tohandlerfunc) -* [Middlewares](middlewares) -* [API](api) -* [Declaration](declaration) -* [Configuration](configuration) -* [Party](party) -* [Subdomains](subdomains) -* [Named Parameters](named-parameters) -* [Static files](static-files) -* [Send files](send-files) -* [Render](render) - * [REST](render_rest) - * [Templates](render_templates) -* [Gzip](gzip) -* [Streaming](streaming) -* [Cookies](cookies) -* [Flash messages](flashmessages) -* [Body binder](request-body-bind) -* [Custom HTTP Errors](custom-http-errors) -* [Context](context) -* [Logger](logger) -* [HTTP access control](middleware-cors) -* [Secure](middleware-secure) -* [Sessions](package-sessions) -* [Websockets](package-websocket) -* [Graceful](package-graceful) -* [Recovery](middleware-recovery) -* [Plugins](plugins) -* [Internationalization and Localization](middleware-internationalization-and-localization) -* [Easy Typescript](plugin-typescript) -* [Browser based Editor](plugin-editor) -* [Routes info](plugin-routesinfo) -* [Control panel](plugin-iriscontrol) -* [Examples](https://github.com/iris-contrib/examples) +--------- + + +Hi with **Django-syntax** + +```html + + Hi Iris [THE TITLE] + +

Hi {{ Name }} + + + + +``` + +```go +// ./main.go +import ( + "github.com/kataras/iris" + "github.com/kataras/iris/config" +) + +func main() { + iris.Config().Render.Template.Engine = config.PongoEngine + iris.Get("/hi", hi) + iris.Listen(":8080") +} + +func hi(ctx *iris.Context){ + ctx.Render("hi.html", map[string]interface{}{"Name": "iris"}) +}