mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 11:27:06 +00:00
Add notes for the new lead maintainer of the open-source iris project and align with @get-ion/ion by @hiveminded
Former-commit-id: da4f38eb9034daa49446df3ee529423b98f9b331
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
// Copyright 2017 Gerasimos Maropoulos, ΓΜ. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package view
|
||||
|
||||
import (
|
||||
@@ -24,16 +20,7 @@ func getLayout(layout string, globalLayout string) string {
|
||||
return layout
|
||||
}
|
||||
|
||||
// Options should contains the dynamic options for the engine's ExecuteWriter.
|
||||
type Options interface {
|
||||
// the per-execute layout,
|
||||
// most view engines will have a static configuration field for that too.
|
||||
GetLayout() string
|
||||
// should returns the dynamic binding data, which will be used inside the template file
|
||||
GetData() interface{}
|
||||
} // this Options interface is implemented inside context, in order to use one import path for all context's methods.
|
||||
|
||||
// Engine is the interface which all viwe engines should be implemented in order to be adapted inside Iris.
|
||||
// Engine is the interface which all view engines should be implemented in order to be registered inside iris.
|
||||
type Engine interface {
|
||||
// Load should load the templates from a directory of by binary(assets/go-bindata).
|
||||
Load() error
|
||||
|
||||
Reference in New Issue
Block a user