You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
295 B

package engine
import (
"gitoa.ru/go-4devs/mime"
"gitoa.ru/go-4devs/templating/render"
)
func Support(reference render.Reference, name string, formats ...mime.Ext) bool {
return (reference.Engine != "" && reference.IsEngine(name)) || (len(formats) != 0 && reference.IsFromat(formats...))
}