mirror of
https://github.com/kataras/iris.git
synced 2025-03-15 06:46:26 +01:00
Align doc.go
Former-commit-id: 65f2eb1a8bb7de832c854d78c6b245f8b7d7764b
This commit is contained in:
parent
5a1e9cd13f
commit
155d3f2d87
42
doc.go
42
doc.go
|
@ -411,32 +411,29 @@ Example code:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Visit https://godoc.org/github.com/kataras/iris#Router for more.
|
View engine
|
||||||
|
|
||||||
|
Iris supports 5 template engines out-of-the-box, developers can still use any external golang template engine,
|
||||||
View engine, supports 5 template engines, developers can still use any external golang template engine,
|
|
||||||
as `context.ResponseWriter` is an `io.Writer`.
|
as `context.ResponseWriter` is an `io.Writer`.
|
||||||
|
|
||||||
All of these five template engines have common features with common API,
|
All of these five template engines have common features with common API,
|
||||||
like Layout, Template Funcs, Party-specific layout, partial rendering and more.
|
like Layout, Template Funcs, Party-specific layout, partial rendering and more.
|
||||||
|
|
||||||
- the standard html, based on https://github.com/kataras/go-template/tree/master/html
|
The standard html, based on github.com/kataras/go-template/tree/master/html
|
||||||
its template parser is the https://golang.org/pkg/html/template/.
|
its template parser is the golang.org/pkg/html/template/.
|
||||||
|
|
||||||
- django, based on https://github.com/kataras/go-template/tree/master/django
|
Django, based ongithub.com/kataras/go-template/tree/master/django
|
||||||
its template parser is the https://github.com/flosch/pongo2
|
its template parser is the github.com/flosch/pongo2
|
||||||
|
|
||||||
- pug, based on https://github.com/kataras/go-template/tree/master/pug
|
Pug(Jade), based on github.com/kataras/go-template/tree/master/pug
|
||||||
its template parser is the https://github.com/Joker/jade
|
its template parser is the github.com/Joker/jade
|
||||||
|
|
||||||
- handlebars, based on https://github.com/kataras/go-template/tree/master/handlebars
|
Handlebars, based on github.com/kataras/go-template/tree/master/handlebars
|
||||||
its template parser is the https://github.com/aymerick/raymond
|
its template parser is the github.com/aymerick/raymond
|
||||||
|
|
||||||
- amber, based on https://github.com/kataras/go-template/tree/master/amber
|
Amber, based on github.com/kataras/go-template/tree/master/amber
|
||||||
its template parser is the https://github.com/eknkc/amber
|
its template parser is the github.com/eknkc/amber
|
||||||
|
|
||||||
Each one of these template engines has different options,
|
|
||||||
view adaptors are located here: https://github.com/kataras/iris/tree/v6/adaptors/view .
|
|
||||||
|
|
||||||
Example code:
|
Example code:
|
||||||
|
|
||||||
|
@ -515,13 +512,18 @@ Example code:
|
||||||
app.Adapt(pugEngine)
|
app.Adapt(pugEngine)
|
||||||
|
|
||||||
|
|
||||||
You should have a basic idea of the framework by now, we just scratched the surface.
|
Each one of these template engines has different options located here: https://github.com/kataras/iris/tree/v6/adaptors/view .
|
||||||
|
|
||||||
|
That's the basics, we didn't cover a lot, such as static files, websockets, sessions...
|
||||||
|
|
||||||
|
But you should have a basic idea of the framework by now, we just scratched the surface.
|
||||||
If you enjoy what you just saw and want to learn more, please follow the below links:
|
If you enjoy what you just saw and want to learn more, please follow the below links:
|
||||||
|
|
||||||
- examples: https://github.com/iris-contrib/examples
|
Examples: https://github.com/iris-contrib/examples
|
||||||
- adaptors: https://github.com/kataras/iris/tree/v6/adaptors
|
|
||||||
- middleware: https://github.com/kataras/iris/tree/v6/middleware & https://github.com/iris-contrib/middleware
|
Adaptors: https://github.com/kataras/iris/tree/v6/adaptors
|
||||||
- godocs: https://godoc.org/github.com/kataras/iris
|
|
||||||
|
Middleware: https://github.com/kataras/iris/tree/v6/middleware & https://github.com/iris-contrib/middleware
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
2
iris.go
2
iris.go
|
@ -5,7 +5,7 @@
|
||||||
// For middleware, template engines, response engines, sessions, websockets, mails, subdomains,
|
// For middleware, template engines, response engines, sessions, websockets, mails, subdomains,
|
||||||
// dynamic subdomains, routes, party of subdomains & routes and more
|
// dynamic subdomains, routes, party of subdomains & routes and more
|
||||||
//
|
//
|
||||||
// visit https://docs.iris-go.com
|
// visit https://godoc.org/gopkg.in/kataras/iris.v6
|
||||||
package iris
|
package iris
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user