mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
rename master branch to main
This commit is contained in:
@@ -16,11 +16,11 @@ Parse using embedded assets, Layouts and Party-specific layout, Template Funcs,
|
||||
| 6 | Jet | [CloudyKit/jet](https://github.com/CloudyKit/jet) |
|
||||
| 7 | Ace | [yosssi/ace](https://github.com/yosssi/ace) |
|
||||
|
||||
[List of Examples](https://github.com/kataras/iris/tree/master/_examples/view).
|
||||
[List of Examples](https://github.com/kataras/iris/tree/main/_examples/view).
|
||||
|
||||
[Benchmarks](https://github.com/kataras/iris/tree/master/_benchmarks/view).
|
||||
[Benchmarks](https://github.com/kataras/iris/tree/main/_benchmarks/view).
|
||||
|
||||
You can serve [quicktemplate](https://github.com/valyala/quicktemplate) files too, simply by using the `Context.ResponseWriter`, take a look at the [iris/_examples/view/quicktemplate](https://github.com/kataras/iris/tree/master/_examples/view/quicktemplate) example.
|
||||
You can serve [quicktemplate](https://github.com/valyala/quicktemplate) files too, simply by using the `Context.ResponseWriter`, take a look at the [iris/_examples/view/quicktemplate](https://github.com/kataras/iris/tree/main/_examples/view/quicktemplate) example.
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -162,7 +162,7 @@ func hi(ctx iris.Context) {
|
||||
}
|
||||
```
|
||||
|
||||
Examples can be found here: https://github.com/kataras/iris/tree/master/_examples/view/embedding-templates-into-app and https://github.com/kataras/iris/tree/master/_examples/view/embedding-templates-into-app-bindata.
|
||||
Examples can be found here: https://github.com/kataras/iris/tree/main/_examples/view/embedding-templates-into-app and https://github.com/kataras/iris/tree/main/_examples/view/embedding-templates-into-app-bindata.
|
||||
|
||||
## Reload
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@ import (
|
||||
// Pug(embed.FS, ".pug") or Pug(AssetFile(), ".pug") for embedded data.
|
||||
//
|
||||
// Examples:
|
||||
// https://github.com/kataras/iris/tree/master/_examples/view/template_pug_0
|
||||
// https://github.com/kataras/iris/tree/master/_examples/view/template_pug_1
|
||||
// https://github.com/kataras/iris/tree/master/_examples/view/template_pug_2
|
||||
// https://github.com/kataras/iris/tree/master/_examples/view/template_pug_3
|
||||
// https://github.com/kataras/iris/tree/main/_examples/view/template_pug_0
|
||||
// https://github.com/kataras/iris/tree/main/_examples/view/template_pug_1
|
||||
// https://github.com/kataras/iris/tree/main/_examples/view/template_pug_2
|
||||
// https://github.com/kataras/iris/tree/main/_examples/view/template_pug_3
|
||||
func Pug(fs interface{}, extension string) *HTMLEngine {
|
||||
s := HTML(fs, extension)
|
||||
s.name = "Pug"
|
||||
|
||||
Reference in New Issue
Block a user