1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-20 03:29:51 +02:00

18 lines
325 B
Go
Raw Normal View History

package templates
import (
"fmt"
"github.com/MontFerret/ferret/pkg/drivers/cdp/eval"
"github.com/MontFerret/ferret/pkg/runtime/values"
)
func StyleRead(name values.String) string {
n := name.String()
2019-03-15 00:06:55 -04:00
return fmt.Sprintf(
`el.style[%s] != "" ? el.style[%s] : null`,
eval.ParamString(n),
eval.ParamString(n),
)
}