From 4a504b0fc6d76afa52fbdafde338182c8463f6a0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 10 Dec 2019 16:07:02 +0100 Subject: Rename Plugin.Render to Plugin.Inject This function doesn't render anything, it just adds extra data to the template data. --- plugin_lua.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin_lua.go') diff --git a/plugin_lua.go b/plugin_lua.go index c1a8ebe..a0eecef 100644 --- a/plugin_lua.go +++ b/plugin_lua.go @@ -68,7 +68,7 @@ func (p *luaPlugin) setRoute(l *lua.LState) int { return 0 } -func (p *luaPlugin) Render(name string, data interface{}) error { +func (p *luaPlugin) Inject(name string, data interface{}) error { f, ok := p.renderCallbacks[name] if !ok { return nil -- cgit v1.2.3-59-g8ed1b