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...)) }