mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
7.0.1 - https://github.com/iris-contrib/community-board/issues/1 https://github.com/iris-contrib/community-board/issues/2
Read HISTORY.md Former-commit-id: 82df2d266055818ffafe0ba66b58cf4ed9089922
This commit is contained in:
11
internal/cmd/gen/website/recipe/example/example.go
Normal file
11
internal/cmd/gen/website/recipe/example/example.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package example
|
||||
|
||||
// Example defines the example link.
|
||||
type Example struct {
|
||||
Name string // i.e: Hello World
|
||||
DataSource string // i.e: https://raw.githubusercontent.com/iris-contrib/examples/master/hello-world.go
|
||||
Children []Example // if has children the data source is not a source file, it's just a folder, its the template's H2 tag.
|
||||
// needed for the raw templates, we can do a simple func but lets keep it simple, it's a small template file.
|
||||
HasChildren bool
|
||||
HasNotChildren bool
|
||||
}
|
||||
Reference in New Issue
Block a user